Skip to content

Instantly share code, notes, and snippets.

@spericas

spericas/Main.java

Last active Jun 22, 2020
Embed
What would you like to do?
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