Skip to content

Instantly share code, notes, and snippets.

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 abhirockzz/32c2a3ee475fa095dced0b2fbc055d2a to your computer and use it in GitHub Desktop.
Save abhirockzz/32c2a3ee475fa095dced0b2fbc055d2a to your computer and use it in GitHub Desktop.
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