void sendToSocket(String writeHandlerID, Object message) {
// Convert to Buffer
Buffer buffer = Buffer.buffer()
JsonObject data = new JsonObject(ObjectUtil.toMap(message))
buffer.appendString(data.encodePrettily())
eventBus.send(writeHandlerID, buffer)
}
Unfortunately, the examples in the vertx-examples projects are very rudimentary. They assume WebServer and just echoing stuff back. Nothing elaborate that would demonstrate more of this stuff. But, it really isn't complicated in the end. Typically, learn it the first time, then you know how to go about it, or write a wrapper class to hide it all from your app.Mark
--
You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/3u1TwelDV8w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vertx+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/13918d85-0e43-4a84-b8ae-2590afe055c7%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/CA%2BwPBrNoC-x6fiT-L-c7usjUADY4EJyYuOZ2aQt66zou-jv%2BYA%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/55A75522.9060303%40gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/CA%2BwPBrOuDyt9rAfqHp%2BDiowQpbAZyNuXbKYzse5N2N%3DXswNKLQ%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/fc6b1e31-f5a0-461f-af21-241c4a9b15ce%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/CA%2BwPBrPy_CREcWbxOEMk%2B0475StbTQvz0K4sv27yn-BwgmqvUw%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/55A8A168.6050406%40gmail.com.
Thanks Tim for your help. But for your information here my client is not browser. My client is separate verticle.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/CA%2BwPBrPR4B3%2BQ6gzZWHgg8rP10xrNtwf%2BpRpTuRYZorL_mFYdQ%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/55A8A3BF.1070809%40gmail.com.
1. Yes I have Java Vert.x client and a Java Vert.x server.2. I want to know mechanism for authenticate client with server.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/CA%2BwPBrMPU6kvHG%2BJ9NCudHeFJtvxj1kQv4bjxLCQWE4vLjdhUw%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/55A8A742.6090602%40gmail.com.
...