| Package | Description |
|---|---|
| io.fabric8.kubernetes.client.http |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<WebSocket> |
StandardWebSocketBuilder.buildAsync(WebSocket.Listener listener) |
CompletableFuture<WebSocket> |
WebSocket.Builder.buildAsync(WebSocket.Listener listener)
Builds a new WebSocket connection and waits asynchronously until the connection is opened.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
WebSocket.Listener.onClose(WebSocket webSocket,
int code,
String reason)
Called when the remote input closes.
|
default void |
WebSocket.Listener.onError(WebSocket webSocket,
Throwable error)
Called when an error has occurred.
|
default void |
WebSocket.Listener.onMessage(WebSocket webSocket,
ByteBuffer bytes)
Called once the full binary message has been built.
|
default void |
WebSocket.Listener.onMessage(WebSocket webSocket,
String text)
Called once the full text message has been built.
|
default void |
WebSocket.Listener.onOpen(WebSocket webSocket) |
| Constructor and Description |
|---|
WebSocketResponse(WebSocketUpgradeResponse webSocketUpgradeResponse,
WebSocket webSocket) |
Copyright © 2015–2024 Red Hat. All rights reserved.