public.javadoc.org.spincast.core.websocket.WebsocketEndpointWriter.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
WebsocketEndpointWriter (org.spincast:spincast-framework 1.0.0 API)
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
All Methods Instance Methods Abstract Methods
Modifier and Type
Method and Description
void
sendMessage(byte[] message)
Sends a byte array message to all
peers of the endpoint.
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
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
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.
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.
-
-
Method Detail
-
sendMessage
void sendMessage(String message)
Sends a String message to all
peers of the endpoint.
-
sendMessage
void sendMessage(String peerId,
String message)
Sends a String message to a specific
peer.
-
sendMessage
void sendMessage(Set<String> peerIds,
String message)
Sends a String message to specific
peers.
-
sendMessageExcept
void sendMessageExcept(String peerId,
String message)
Sends a String message to all
peers except the specified one.
-
sendMessageExcept
void sendMessageExcept(Set<String> peerIds,
String message)
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
void sendMessage(String peerId,
byte[] message)
Sends a byte array message to a specific
peer.
-
sendMessage
void sendMessage(Set<String> peerIds,
byte[] message)
Sends a byte array message to specific
peers.
-
sendMessageExcept
void sendMessageExcept(String peerId,
byte[] message)
Sends a byte array message to all
peers except the specified one.
Copyright © 2019. All rights reserved.