//Below is serverside javascript
//I can get messages back while on the same client but im having trouble understanding how i would send data to another client
load ('vertx.js');
vertx.createHttpServer (). websocketHandler (function (ws) {
ws.dataHandler (function (buffer) {
var address = buffer.toString ();
address.WriteTextFrame (ids); //just want this to send to another client's websocket
});
}.) Listen (8888)
/ / The incoming string handler has the full name. Is there an ID i should use That will aid me in this situation.
//I'm new to websockets and vert.x so any leads would be much appreciated.