Package org.spincast.core.websocket
Interface WebsocketPeerManager
public interface WebsocketPeerManager
Component to manage a specific peer.
- 
Method Summary
Modifier and TypeMethodDescriptionvoidCloses the connection with the peer.voidsendMessage(byte[] bytes) Sends a byte array message to the peer.voidsendMessage(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. 
 -