Package org.spincast.core.websocket
Interface WebsocketEndpointWriter
- All Known Subinterfaces:
WebsocketEndpoint
,WebsocketEndpointManager
- All Known Implementing Classes:
SpincastWebsocketEndpoint
public interface WebsocketEndpointWriter
Component to send WebSocket messages on an endpoint.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sendMessage
(byte[] message) Sends a byte array message to all peers of the endpoint.void
sendMessage
(String message) Sends a String message to all peers of the endpoint.void
sendMessage
(String peerId, byte[] message) Sends a byte array message to a specific peer.void
sendMessage
(String peerId, String message) Sends a String message to a specific peer.void
sendMessage
(Set<String> peerIds, byte[] message) Sends a byte array message to specific peers.void
sendMessage
(Set<String> peerIds, String message) Sends a String message to specific peers.void
sendMessageExcept
(String peerId, byte[] message) Sends a byte array message to all peers except the specified one.void
sendMessageExcept
(String peerId, String message) Sends a String message to all peers except the specified one.void
sendMessageExcept
(Set<String> peerIds, byte[] message) Sends a byte array message to all peers except the specified ones.void
sendMessageExcept
(Set<String> peerIds, String message) Sends a String message to all peers except the specified ones.
-
Method Details
-
sendMessage
Sends a String message to all peers of the endpoint. -
sendMessage
Sends a String message to a specific peer. -
sendMessage
Sends a String message to specific peers. -
sendMessageExcept
Sends a String message to all peers except the specified one. -
sendMessageExcept
Sends a String message to all peers except the specified ones. -
sendMessage
void sendMessage(byte[] message) Sends a byte array message to all peers of the endpoint. -
sendMessage
Sends a byte array message to a specific peer. -
sendMessage
Sends a byte array message to specific peers. -
sendMessageExcept
Sends a byte array message to all peers except the specified one. -
sendMessageExcept
Sends a byte array message to all peers except the specified ones.
-