Annotation Type OnMessage


  • @Documented
    @Retention(RUNTIME)
    @Target(METHOD)
    @WebSocketMapping
    @Inherited
    public @interface OnMessage
    Annotation that can be applied to a method that will receive WebSocket message frames. Largely mirrors the equivalent annotation in javax.websocket and eventual support for the specification could be added in the future.
    Since:
    1.0
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      int maxPayloadLength
      The maximum size of a WebSocket payload.
    • Element Detail

      • maxPayloadLength

        int maxPayloadLength
        The maximum size of a WebSocket payload.
        Returns:
        The max size
        Default:
        65536