Interface BinaryMessageAction


public interface BinaryMessageAction
Binary WebSocket message.
  • Method Details

    • action

      MessageAction action()
      Returns:
      The action associated with this message.
    • payload

      ByteArray payload()
      Returns:
      The payload of this message.
    • continueWith

      static BinaryMessageAction continueWith(ByteArray payload)
      Build a binary WebSocket message to be processed.
      Parameters:
      payload - The binary message payload.
      Returns:
      The BinaryMessageAction containing the message to be processed.
    • continueWith

      static BinaryMessageAction continueWith(BinaryMessage binaryMessage)
      Build a binary WebSocket message to be processed.
      Parameters:
      binaryMessage - The binary message payload.
      Returns:
      The BinaryMessageAction containing the message to be processed.
    • drop

      static BinaryMessageAction drop()
      Build a binary WebSocket message to be dropped.
      Returns:
      The BinaryMessageAction dropping the message.
    • binaryMessageAction

      static BinaryMessageAction binaryMessageAction(ByteArray payload, MessageAction action)
      Build a binary websocket message action.
      Parameters:
      payload - the binary payload for the message
      action - the action to take for the message.
      Returns:
      The BinaryMessageAction containing the message and the action.