Package org.spincast.core.websocket
Interface WebsocketPeerManager
public interface WebsocketPeerManager
Component to manage a specific peer.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Closes the connection with the peer.void
sendMessage
(byte[] bytes) Sends a byte array message to the peer.void
sendMessage
(String message) Sends a String message to the peer.
-
Method Details
-
sendMessage
Sends a String message to the peer. -
sendMessage
void sendMessage(byte[] bytes) Sends a byte array message to the peer. -
closeConnection
void closeConnection()Closes the connection with the peer.
-