| Package | Description |
|---|---|
| org.mule.runtime.http.api.client.ws | |
| org.mule.runtime.http.api.server.ws | |
| org.mule.runtime.http.api.ws |
| Modifier and Type | Method and Description |
|---|---|
void |
WebSocketCallback.onClose(WebSocket webSocket,
WebSocketCloseCode code,
String reason)
Invoked then the given
webSocket is closed. |
| Modifier and Type | Method and Description |
|---|---|
void |
WebSocketConnectionHandler.onClose(WebSocket socket,
WebSocketRequest request,
WebSocketCloseCode closeCode,
String reason)
Invoked when the
socket is closed. |
| Modifier and Type | Method and Description |
|---|---|
static WebSocketCloseCode |
WebSocketCloseCode.fromProtocolCode(int protocolCode)
Returns the
WebSocketCloseCode that matches the given raw protocolCode |
static WebSocketCloseCode |
WebSocketCloseCode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocketCloseCode[] |
WebSocketCloseCode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
WebSocket.close(WebSocketCloseCode code,
String reason)
Closes
this socket |
Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.