ClientTransport that connects to a ServerTransport over
WebSocket.
| Modifier and Type | Field and Description |
|---|---|
| private final HttpClient | |
| private static final String | |
| private HttpHeaders | |
| private final String | |
| private final WebsocketClientSpec. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Mono | connect()
Implements io. Mono that connects for each subscriber.
|
| public static WebsocketClientTransport | Returns: a new instancethe port to connect to port)Creates a new instance connecting to localhost |
| public static WebsocketClientTransport | |
| public static WebsocketClientTransport | Returns: a new instancethe address to connect to address)Creates a new instance |
| public static WebsocketClientTransport | |
| public static WebsocketClientTransport | |
| public static WebsocketClientTransport | Returns: a new instancethe client, String HttpClient to usethe path to request path)Creates a new instance |
| public WebsocketClientTransport | |
| public int | maxFrameLength()
Overrides default io. DuplexConnection can bring up
to RSocket level.
|
| public WebsocketClientTransport | Returns: the same instance for method chainingthe configurer to apply to the spec configurerProvide a consumer to customize properties of the |
| client | back to summary |
|---|---|
| private final HttpClient client | |
| DEFAULT_PATH | back to summary |
|---|---|
| private static final String DEFAULT_PATH | |
| headers | back to summary |
|---|---|
| private HttpHeaders headers | |
| path | back to summary |
|---|---|
| private final String path | |
| specBuilder | back to summary |
|---|---|
| private final WebsocketClientSpec. | |
| WebsocketClientTransport | back to summary |
|---|---|
| private WebsocketClientTransport(HttpClient client, String path) | |
| connect | back to summary |
|---|---|
| public Mono Implements io. Doc from io. Return a
| |
| create | back to summary |
|---|---|
| public static WebsocketClientTransport create(int port) Creates a new instance connecting to localhost
| |
| create | back to summary |
|---|---|
| public static WebsocketClientTransport create(String bindAddress, int port) Creates a new instance
| |
| create | back to summary |
|---|---|
| public static WebsocketClientTransport create(InetSocketAddress address) Creates a new instance
| |
| create | back to summary |
|---|---|
| public static WebsocketClientTransport create(TcpClient client) Creates a new instance
| |
| create | back to summary |
|---|---|
| public static WebsocketClientTransport create(URI uri) Creates a new instance
| |
| create | back to summary |
|---|---|
| public static WebsocketClientTransport create(HttpClient client, String path) Creates a new instance
| |
| header | back to summary |
|---|---|
| public WebsocketClientTransport header(String name, String... values) Add a header and value(s) to use for the WebSocket handshake request.
| |
| maxFrameLength | back to summary |
|---|---|
| public int maxFrameLength() Overrides default io. Doc from io. Configurations that exposes the maximum frame size that a This number should not exist the 16,777,215 (maximum frame size specified by RSocket spec)
| |
| webSocketSpec | back to summary |
|---|---|
| public WebsocketClientTransport webSocketSpec(Consumer<WebsocketClientSpec. Provide a consumer to customize properties of the
| |