The method may only take the following parameters:-
Session parameterCloseReason parameterjavax.websocket.server.PathParam
annotation.The parameters may appear in any order. See
Endpoint#onClose
for more details on how the session parameter may be used during method calls
annotated with this annotation.