Package org.spincast.core.websocket
Interface WebsocketEndpointHandler
- All Known Implementing Classes:
WebsocketEndpointHandlerDefault
public interface WebsocketEndpointHandler
WebSocket endpoint handler.
-
Method Summary
Modifier and TypeMethodDescriptionvoidThe endpoint is actually closed by the server.voidonPeerClosed(String peerId) A peer closed its connection.voidonPeerConnected(String peerId) Called when the connection is established with a peer.voidonPeerMessage(String peerId, byte[] message) A bytes messages arrives from a peer.voidonPeerMessage(String peerId, String message) A String message arrives from a peer.
-
Method Details
-
onPeerConnected
Called when the connection is established with a peer. -
onPeerMessage
A String message arrives from a peer. -
onPeerMessage
A bytes messages arrives from a peer. -
onPeerClosed
A peer closed its connection. -
onEndpointClosed
void onEndpointClosed()The endpoint is actually closed by the server.
-