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