close
Closes the WebSocket session with an optional reason.
Return
The updated SocketSession instance.
Parameters
reason
The reason for closing the connection (default is null).
Closes the WebSocket session with an optional reason.
The updated SocketSession instance.
The reason for closing the connection (default is null).