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