Skip to content

Instantly share code, notes, and snippets.

Embed
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://hotstocks.com/ticker"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment