Skip to content

Instantly share code, notes, and snippets.

Last active December 31, 2015 04:57
What would you like to do?
A custom client endpoint config and its usage
WebSocketContainer webSocketContainer = ContainerProvider.getWebSocketContainer();
ClientEndpointConfig config = ClientEndpointConfig.Builder.create().decoders(StockTickDecoder.class).build();
Session session = webSocketContainer.connectToServer(StockTickerClient().class, config,
new URI("ws://"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment