Interface WebsocketEndpointWriter

All Known Subinterfaces:
WebsocketEndpoint, WebsocketEndpointManager
All Known Implementing Classes:
SpincastWebsocketEndpoint

public interface WebsocketEndpointWriter
Component to send WebSocket messages on an endpoint.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    sendMessage(byte[] message)
    Sends a byte array message to all peers of the endpoint.
    void
    Sends a String message to all peers of the endpoint.
    void
    sendMessage(String peerId, byte[] message)
    Sends a byte array message to a specific peer.
    void
    sendMessage(String peerId, String message)
    Sends a String message to a specific peer.
    void
    sendMessage(Set<String> peerIds, byte[] message)
    Sends a byte array message to specific peers.
    void
    sendMessage(Set<String> peerIds, String message)
    Sends a String message to specific peers.
    void
    sendMessageExcept(String peerId, byte[] message)
    Sends a byte array message to all peers except the specified one.
    void
    sendMessageExcept(String peerId, String message)
    Sends a String message to all peers except the specified one.
    void
    sendMessageExcept(Set<String> peerIds, byte[] message)
    Sends a byte array message to all peers except the specified ones.
    void
    sendMessageExcept(Set<String> peerIds, String message)
    Sends a String message to all peers except the specified ones.
  • Method Details

    • sendMessage

      void sendMessage(String message)
      Sends a String message to all peers of the endpoint.
    • sendMessage

      void sendMessage(String peerId, String message)
      Sends a String message to a specific peer.
    • sendMessage

      void sendMessage(Set<String> peerIds, String message)
      Sends a String message to specific peers.
    • sendMessageExcept

      void sendMessageExcept(String peerId, String message)
      Sends a String message to all peers except the specified one.
    • sendMessageExcept

      void sendMessageExcept(Set<String> peerIds, String message)
      Sends a String message to all peers except the specified ones.
    • sendMessage

      void sendMessage(byte[] message)
      Sends a byte array message to all peers of the endpoint.
    • sendMessage

      void sendMessage(String peerId, byte[] message)
      Sends a byte array message to a specific peer.
    • sendMessage

      void sendMessage(Set<String> peerIds, byte[] message)
      Sends a byte array message to specific peers.
    • sendMessageExcept

      void sendMessageExcept(String peerId, byte[] message)
      Sends a byte array message to all peers except the specified one.
    • sendMessageExcept

      void sendMessageExcept(Set<String> peerIds, byte[] message)
      Sends a byte array message to all peers except the specified ones.