ServerTransport that connects via Websocket and listens on specified
routes.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Consumer | |
| private final HttpServer |
| Access | Constructor and Description |
|---|---|
| public | WebsocketRouteTransport(HttpServer
the server, Consumer<? super HttpServerRoutes> HttpServer to usethe builder for the routes that will be listened on routesBuilder, String the path foe each route path)Creates a new instance |
| Modifier and Type | Method and Description |
|---|---|
| public static BiFunction | Returns: a new Websocket handlerthe acceptorConnectionAcceptor to use with the handlerCreates a new Websocket handler |
| public Mono | start(ServerTransport.
to process a newly accepted connections with acceptorImplements io. |
| path | back to summary |
|---|---|
| private final String path | |
| routesBuilder | back to summary |
|---|---|
| private final Consumer<? super HttpServerRoutes> routesBuilder | |
| server | back to summary |
|---|---|
| private final HttpServer server | |
| WebsocketRouteTransport | back to summary |
|---|---|
| public WebsocketRouteTransport(HttpServer server, Consumer<? super HttpServerRoutes> routesBuilder, String path) Creates a new instance
| |
| newHandler | back to summary |
|---|---|
| public static BiFunction Creates a new Websocket handler
| |
| start | back to summary |
|---|---|
| public Mono Implements io. Doc from io. Start this server.
| |