Created
November 8, 2013 13:16
-
-
Save odadoda/7370904 to your computer and use it in GitHub Desktop.
Return a websocket connection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Websocket interface | |
public static WebSocket<String> wsInterface(){ | |
return new WebSocket<String>(){ | |
// called when websocket handshake is done | |
public void onReady(WebSocket.In<String> in, WebSocket.Out<String> out){ | |
SimpleChat.start(in, out); | |
} | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment