Skip to content

Instantly share code, notes, and snippets.

@matzew
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matzew/8862557 to your computer and use it in GitHub Desktop.
Save matzew/8862557 to your computer and use it in GitHub Desktop.
final WebSocketContainer container = ContainerProvider.getWebSocketContainer();
final URI securedEndpointURL = new URI("wss://echo.websocket.org");
container.connectToServer(new Endpoint() {
@Override
public void onOpen(Session session, EndpointConfig config) {
System.out.println("Connected!!!!!");
}
//}, ClientEndpointConfig.Builder.create().build(), securedEndpointURL);
}, securedEndpointURL); // ah !!! :-)
// better than java-websocket project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment