SPI contract for WebSocket modules that register endpoint routes. More...
Public Member Functions | |
| default void | registerRoutes (final JettyWebSocketRouteRegistry routes, final JettyWebSocketModuleContext context) |
| Registers WebSocket routes on the given registry. | |
SPI contract for WebSocket modules that register endpoint routes.
Implementations define which WebSocket endpoints the application exposes by calling JettyWebSocketRouteRegistry#add inside registerRoutes. The framework invokes this method once during server bootstrap, passing the shared registry and a read-only context.
Definition at line 37 of file JettyWebSocketModule.java.
| default void dev.rafex.ether.websocket.jetty12.JettyWebSocketModule.registerRoutes | ( | final JettyWebSocketRouteRegistry | routes, |
| final JettyWebSocketModuleContext | context ) |
Registers WebSocket routes on the given registry.
The default implementation is a no-op, so modules only need to override this method when they expose actual endpoints.
| routes | the route registry to register endpoints on |
| context | the module context providing server configuration |
Definition at line 48 of file JettyWebSocketModule.java.
References dev.rafex.ether.websocket.jetty12.JettyWebSocketModuleContext().