-
Notifications
You must be signed in to change notification settings - Fork 6
ConnectionManager API
The ConnectionManager object keeps track of all of the open connections and channels for a specific WebSocket server endpoint.
Sends the message
to all of the subscribers of the Channel channel
.
@param channel
the id of the Channel
@param message
the message to send
@returns the Channel with the given id, or null
if no such Channel exist
@returns a java.util.Map
where the keys are Channel IDs and the values is the number of subscribers.
Logs the message
to the websocket
log with level INFO.
Subscribes the connection
to the Channel identified by channel
. The Channel is created if it does not exist.
@returns the number of subscribers for the Channel
Unsubscribes the connection
from the Channel identified by channel
. If the Channel is empty it will be closed.
@returns the number of subscribers for the Channel
Unsubscribes the connection
from all of the Channels to which it is subscribed.