Interface WebSocketListener

All Superinterfaces:
WebSocketConnectionListener
All Known Implementing Classes:
WebSocketAdapter

public interface WebSocketListener extends WebSocketConnectionListener
Basic WebSocket Listener interface for incoming WebSocket message events.
  • Method Details

    • onWebSocketBinary

      default void onWebSocketBinary(byte[] payload, int offset, int len)
      A WebSocket binary frame has been received.
      Parameters:
      payload - the raw payload array received
      offset - the offset in the payload array where the data starts
      len - the length of bytes in the payload
    • onWebSocketText

      default void onWebSocketText(String message)
      A WebSocket Text frame was received.
      Parameters:
      message - the message