OnMessage (WebSocket 2.0 API Documentation - Apache Tomcat 10.0.27)

Package jakarta.websocket

## Annotation Type OnMessage

-     @Retention(RUNTIME)
      @Target(METHOD)
      public @interface OnMessage

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element | Description
    --- | --- | ---
    `long` | `maxMessageSize` |

- - ### Element Detail

    - #### maxMessageSize

          long maxMessageSize

      Default:
        -1L