Annotation Type OnClose


@Retention(RUNTIME) @Target(METHOD) public @interface OnClose
Annotates a method on a POJO endpoint to handle the close event. The annotated method will be called when the WebSocket session is closed.