Annotation Interface OnWebSocketError


@Documented @Retention(RUNTIME) @Target(METHOD) public @interface OnWebSocketError

Annotation for methods to receive WebSocket errors.

Acceptable method signatures:

  1. public void <methodName>(Session session, *Throwable cause)

The * before the parameter type means that the parameter is mandatory.