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.

    1. public void methodName(int statusCode, String reason)
    2. public void methodName(Session session, int statusCode, String reason)