Annotation Type OnOpen


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