Interface WebsocketPeerManager


public interface WebsocketPeerManager
Component to manage a specific peer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the connection with the peer.
    void
    sendMessage(byte[] bytes)
    Sends a byte array message to the peer.
    void
    Sends a String message to the peer.
  • Method Details

    • 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.