Skip to content

Instantly share code, notes, and snippets.

@spericas
Last active June 22, 2020 16:06
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 spericas/7b4842b054541f001997cc0abbb4fda1 to your computer and use it in GitHub Desktop.
Save spericas/7b4842b054541f001997cc0abbb4fda1 to your computer and use it in GitHub Desktop.
List<Class<? extends Encoder>> encoders =
Collections.singletonList(UppercaseEncoder.class);
Routing.builder()
.register("/rest", new MessageQueueService())
.register("/websocket",
TyrusSupport.builder().register(
ServerEndpointConfig.Builder.create(
MessageBoardEndpoint.class, "/").encoders(
encoders).build()).build())
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment