| Modifier and Type | Method and Description |
|---|---|
default CompletableFuture<WebSocket> |
HttpClient.openWebSocket(HttpRequest request,
HttpRequestOptions requestOptions,
String socketId,
WebSocketCallback callback)
Opens a new WebSocket by adding the proper upgrade header to the given
request |
default CompletableFuture<WebSocket> |
HttpClient.openWebSocket(HttpRequest request,
String socketId,
WebSocketCallback callback)
Opens a new WebSocket by adding the proper upgrade header to the given
request |
| Modifier and Type | Method and Description |
|---|---|
void |
WebSocketCallback.onClose(WebSocket webSocket,
WebSocketCloseCode code,
String reason)
Invoked then the given
webSocket is closed. |
void |
WebSocketCallback.onConnect(WebSocket webSocket)
Invoked when the
webSocket has been established |
void |
WebSocketCallback.onMessage(WebSocket webSocket,
org.mule.runtime.api.metadata.TypedValue<InputStream> content)
Invoked when the given
webSocket receives data. |
| Modifier and Type | Method and Description |
|---|---|
WebSocket |
WebSocketMessage.getSocket() |
| Modifier and Type | Method and Description |
|---|---|
void |
WebSocketConnectionHandler.onClose(WebSocket socket,
WebSocketRequest request,
WebSocketCloseCode closeCode,
String reason)
Invoked when the
socket is closed. |
void |
WebSocketConnectionHandler.onConnect(WebSocket socket,
WebSocketRequest request)
Invoked when the
socket is established |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<WebSocket> |
WebSocket.reconnect(RetryPolicyTemplate retryPolicyTemplate,
org.mule.runtime.api.scheduler.Scheduler scheduler)
Reconnects by opening a new
WebSocket generated from an HTTP request identical to the one that originally spawned
this one. |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
WebSocketBroadcaster.broadcast(Collection<WebSocket> sockets,
org.mule.runtime.api.metadata.TypedValue<InputStream> content,
BiConsumer<WebSocket,Throwable> errorCallback)
Broadcast the
content to the given sockets. |
CompletableFuture<Void> |
WebSocketBroadcaster.broadcast(Collection<WebSocket> sockets,
org.mule.runtime.api.metadata.TypedValue<InputStream> content,
BiConsumer<WebSocket,Throwable> errorCallback)
Broadcast the
content to the given sockets. |
CompletableFuture<Void> |
WebSocketBroadcaster.broadcast(Collection<WebSocket> sockets,
org.mule.runtime.api.metadata.TypedValue<InputStream> content,
BiConsumer<WebSocket,Throwable> errorCallback,
RetryPolicyTemplate retryPolicyTemplate,
org.mule.runtime.api.scheduler.Scheduler reconnectionScheduler)
Broadcast the
content to the given sockets. |
CompletableFuture<Void> |
WebSocketBroadcaster.broadcast(Collection<WebSocket> sockets,
org.mule.runtime.api.metadata.TypedValue<InputStream> content,
BiConsumer<WebSocket,Throwable> errorCallback,
RetryPolicyTemplate retryPolicyTemplate,
org.mule.runtime.api.scheduler.Scheduler reconnectionScheduler)
Broadcast the
content to the given sockets. |
| Modifier and Type | Field and Description |
|---|---|
protected WebSocket |
WebSocketRuntimeException.webSocket |
| Modifier and Type | Method and Description |
|---|---|
Optional<WebSocket> |
WebSocketRuntimeException.getWebSocket()
Optionally returns the referred
WebSocket. |
| Constructor and Description |
|---|
WebSocketClosedException(WebSocket webSocket)
Creates a new instance
|
WebSocketClosedException(WebSocket webSocket,
Throwable cause)
Creates a new instance
|
WebSocketConnectionException(WebSocket webSocket)
Creates a new instance
|
WebSocketConnectionException(WebSocket webSocket,
Throwable cause)
Creates a new instance
|
WebSocketRuntimeException(String message,
WebSocket webSocket)
Creates a new instance
|
WebSocketRuntimeException(String message,
WebSocket webSocket,
Throwable cause) |
Copyright © 2003–2020 MuleSoft, Inc.. All rights reserved.