final Namespace chat = io.of("/chat");
chat.onConnection(new Handler<SocketIOSocket>() {
public void handle(SocketIOSocket socket) {
socket.on("namespace emit", new Handler<JsonObject>() {
public void handle(JsonObject event) {
chat.emit("msg", new JsonObject().putString("everyone", "in").putString("/chat", "will get"));
}
});
}
});