@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface OnOpen
The method may only take the following parameters:-
Session
parameterEndpointConfig
parameterjavax.websocket.server.PathParam
annotation.The parameters may appear in any order.