Interface ExtensionWebSocketMessageHandler


public interface ExtensionWebSocketMessageHandler
This interface allows an extension to be notified when messages are received or the WebSocket has been closed.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked when a binary message is received from the application.
    default void
    Invoked when the WebSocket is closed.
    void
    Invoked when a text message is received from the application.
  • Method Details

    • textMessageReceived

      void textMessageReceived(TextMessage textMessage)
      Invoked when a text message is received from the application.
      Parameters:
      textMessage - text WebSocket message.
    • binaryMessageReceived

      void binaryMessageReceived(BinaryMessage binaryMessage)
      Invoked when a binary message is received from the application.
      Parameters:
      binaryMessage - binary WebSocket message.
    • onClose

      default void onClose()
      Invoked when the WebSocket is closed.