public interface UndertowWebsocketEndpointWriter
| Modifier and Type | Method and Description |
|---|---|
void |
sendClosingConnection(int closingCode,
String closingReason,
Set<String> peerIds,
ClosedEventSentCallback callback)
Sends a "closing connection" message to specified peers.
|
void |
sendMessage(Set<String> peerIds,
byte[] bytes,
WebsocketPeersWriteCallback callback)
Sends a byte array message to specific
peers.
|
void |
sendMessage(Set<String> peerIds,
String message,
WebsocketPeersWriteCallback callback)
Sends a String message to specific
peers.
|
void |
sendPings(WebsocketPeersWriteCallback callback)
Sends a
ping message to all peers. |
void sendPings(WebsocketPeersWriteCallback callback)
ping message to all peers.void sendMessage(Set<String> peerIds, String message, WebsocketPeersWriteCallback callback)
void sendMessage(Set<String> peerIds, byte[] bytes, WebsocketPeersWriteCallback callback)
PeersClosedWriteException - if some peers connections were
found to be closed when trying to write.void sendClosingConnection(int closingCode,
String closingReason,
Set<String> peerIds,
ClosedEventSentCallback callback)
Copyright © 2016. All rights reserved.