- Enclosing class:
WebSocket
@Target(METHOD)
@Retention(CLASS)
@Documented
@Inherited
@Singleton
public static @interface WebSocket.OnClose
A method invoked when the websocket connection is closed.
This method may have an
int parameter that will receive the close code,
and a String parameter that will receive the close reason.