public.javadoc.org.spincast.core.websocket.WebsocketPeerManager.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
WebsocketPeerManager (org.spincast:spincast-framework 1.0.0 API)
org.spincast.core.websocket
Interface WebsocketPeerManager
-
public interface WebsocketPeerManager
Component to manage a specific peer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type
Method and Description
void
closeConnection()
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 Detail
-
sendMessage
void sendMessage(String message)
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.
Copyright © 2019. All rights reserved.