Interface TextMessageAction


public interface TextMessageAction
Text WebSocket message.
  • Method Details

    • action

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

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

      static TextMessageAction continueWith(String payload)
      Build a text WebSocket message to be processed.
      Parameters:
      payload - The text message payload.
      Returns:
      The TextMessageAction containing the message to be processed.
    • continueWith

      static TextMessageAction continueWith(TextMessage textMessage)
      Build a text WebSocket message to be processed.
      Parameters:
      textMessage - the text message payload
      Returns:
      The TextMessageAction containing the message to be processed.
    • drop

      static TextMessageAction drop()
      Build a text WebSocket message to be dropped.
      Returns:
      The TextMessageAction dropping the message.
    • textMessageAction

      static TextMessageAction textMessageAction(String payload, MessageAction action)
      Build a websocket text message action.
      Parameters:
      payload - the binary payload for the message
      action - the action to take for the message.
      Returns:
      The TextMessageAction containing the message and the action.