Annotation Type OnWebSocketClose
-
@Documented @Retention(RUNTIME) @Target(METHOD) public @interface OnWebSocketCloseAnnotation for tagging methods to receive connection close events.Acceptable method patterns.
Note:methodNamecan be any name you want to use.public void methodName(int statusCode, String reason)public void methodName(Sessionsession, int statusCode, String reason)