public interface WebsocketEndpointManager extends WebsocketEndpointWriter
| Modifier and Type | Method and Description |
|---|---|
void |
closeEndpoint()
Closes the entire WebSocket endpoint.
|
void |
closeEndpoint(boolean sendClosingMessageToPeers)
Closes the entire WebSocket endpoint.
|
void |
closeEndpoint(int closingCode,
String closingReason)
Closes the entire WebSocket endpoint.
|
void |
closePeer(String peerId)
Closes a specific peer connection on the endpoint.
|
void |
closePeer(String peerId,
int closingCode,
String closingReason)
Closes a specific peer connection on the endpoint.
|
String |
getEndpointId()
The endpoint id
|
Set<String> |
getPeersIds()
The connected peers' ids.
|
boolean |
isClosed()
Is this endpoint closed?
|
boolean |
isClosing()
Is this endpoint closing?
|
sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessageExcept, sendMessageExcept, sendMessageExcept, sendMessageExceptString getEndpointId()
void closePeer(String peerId)
void closePeer(String peerId, int closingCode, String closingReason)
void closeEndpoint()
Will try to send a "closing" message to the peers before closing their connection.
void closeEndpoint(boolean sendClosingMessageToPeers)
sendClosingMessageToPeers - if true,
Spincast will try to send a "closing" message to the peers
before closing their connections.void closeEndpoint(int closingCode,
String closingReason)
Will try to send a "closing" message to the peers before closing their connection.
boolean isClosing()
boolean isClosed()
Copyright © 2017. All rights reserved.