Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WebSocket Server Endpoint Config fluent builder in action
....
ServerEndpointConfig serverConfig = ServerEndpointConfig.Builder
.create(StockTrackerEndpoint.class , "/pop-stocks/").
.configurator(StockTrackerConfigurator.getInstance())
.decoders(JSONToStockTickerObject.class)
.encoders(StockTickerObjectToJSON.class)
.build();
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment