Annotation Interface OnWebSocketClose


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

Annotation for methods to receive WebSocket close events.

Acceptable method signatures:

  1. public void <methodName>(Session session, int statusCode, String reason, Callback callback)

None of the parameters are mandatory, and you can specify any combination of parameters.