| Modifier and Type | Interface and Description |
|---|---|
static class |
WebSocket.WebSocketType
Types of WebSocket
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(String group)
Subscribes
this socket to the given group |
CompletableFuture<Void> |
close(WebSocketCloseCode code,
String reason)
Closes
this socket |
List<String> |
getGroups() |
String |
getId() |
WebSocketProtocol |
getProtocol() |
WebSocket.WebSocketType |
getType() |
URI |
getUri() |
void |
removeGroup(String group)
Unsubscribe
this socket to the given group |
CompletableFuture<Void> |
send(InputStream content,
org.mule.runtime.api.metadata.MediaType mediaType)
Sends the given
content to the remote peer. |
String getId()
this socketWebSocket.WebSocketType getType()
this socket's typeWebSocketProtocol getProtocol()
this socket's protocolList<String> getGroups()
this socket belongs to. Maybe empty but never null.void addGroup(String group)
this socket to the given groupgroup - a group. Not null nor empty.void removeGroup(String group)
this socket to the given groupgroup - a group. Not null nor empty.CompletableFuture<Void> send(InputStream content, org.mule.runtime.api.metadata.MediaType mediaType)
content to the remote peer.content - the content to be sentmediaType - the content's MediaTypeCompletableFutureCompletableFuture<Void> close(WebSocketCloseCode code, String reason)
this socketcode - WebSocketCloseCode the close codereason - the reason why it's being closedCompletableFutureCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.