Module io.jooby
Package io.jooby

Interface WebSocket.OnMessage

Enclosing interface:
WebSocket

public static interface WebSocket.OnMessage
On message callback. When a Message is send by a client, this callback allow you to handle/react to it.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Generated when a client send a message.
  • Method Details

    • onMessage

      void onMessage(@NonNull WebSocket ws, @NonNull WebSocketMessage message)
      Generated when a client send a message.
      Parameters:
      ws - WebSocket.
      message - Client message.