ServerTransport that connects to a ClientTransport via a
Websocket.
| Modifier and Type | Field and Description |
|---|---|
| private HttpHeaders | |
| private final HttpServer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static WebsocketServerTransport | Returns: a new instancethe port to bind to port)Creates a new instance binding to localhost |
| public static WebsocketServerTransport | |
| public static WebsocketServerTransport | Returns: a new instancethe address to bind to address)Creates a new instance |
| public static WebsocketServerTransport | |
| public WebsocketServerTransport | |
| public Mono | start(ServerTransport.
to process a newly accepted connections with acceptorImplements io. |
| headers | back to summary |
|---|---|
| private HttpHeaders headers | |
| server | back to summary |
|---|---|
| private final HttpServer server | |
| WebsocketServerTransport | back to summary |
|---|---|
| private WebsocketServerTransport(HttpServer server) | |
| create | back to summary |
|---|---|
| public static WebsocketServerTransport create(int port) Creates a new instance binding to localhost
| |
| create | back to summary |
|---|---|
| public static WebsocketServerTransport create(String bindAddress, int port) Creates a new instance
| |
| create | back to summary |
|---|---|
| public static WebsocketServerTransport create(InetSocketAddress address) Creates a new instance
| |
| create | back to summary |
|---|---|
| public static WebsocketServerTransport create(final HttpServer server) Creates a new instance
| |
| header | back to summary |
|---|---|
| public WebsocketServerTransport header(String name, String... values) Add a header and value(s) to set on the response of WebSocket handshakes.
| |
| start | back to summary |
|---|---|
| public Mono Implements io. Doc from io. Start this server.
| |