callback.handle(new RuntimeException("reason"), false);
}
}
});
io.sockets().onConnection(new Handler<SocketIOSocket>() {
public void handle(final SocketIOSocket socket) {
socket.on("get", new Handler<JsonObject>() {
public void handle(JsonObject event) {
String foo = socket.handshakeData().getString("foo");
socket.emit("data", new JsonObject().putString("foo", foo));