Package io.helidon.webserver.websocket
Interface WsRouteRegistration
A contract for generated web socket registrations.
The implementing types are expected to be ServiceRegistry services,
and will be loaded through a ServerFeature.
-
Method Summary
Modifier and TypeMethodDescriptionroute()WebSocket route provided by this registration.default Stringsocket()Named socket this registration should be added to.default booleanWhether the socket defined insocket()must be present for this registration, or it can be exposed on default socket.
-
Method Details
-
route
WsRoute route()WebSocket route provided by this registration.- Returns:
- the route
-
socket
Named socket this registration should be added to.- Returns:
- name of the socket
-
socketRequired
default boolean socketRequired()Whether the socket defined insocket()must be present for this registration, or it can be exposed on default socket.- Returns:
trueif this registration must be exposed on the named socket,falseby default
-