Interface WebsocketEndpointHandler

All Known Implementing Classes:
WebsocketEndpointHandlerDefault

public interface WebsocketEndpointHandler
WebSocket endpoint handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The endpoint is actually closed by the server.
    void
    A peer closed its connection.
    void
    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

      void onPeerConnected(String peerId)
      Called when the connection is established with a peer.
    • onPeerMessage

      void onPeerMessage(String peerId, String message)
      A String message arrives from a peer.
    • onPeerMessage

      void onPeerMessage(String peerId, byte[] message)
      A bytes messages arrives from a peer.
    • onPeerClosed

      void onPeerClosed(String peerId)
      A peer closed its connection.
    • onEndpointClosed

      void onEndpointClosed()
      The endpoint is actually closed by the server.