on Close
Sets the callback function to be invoked when the WebSocket session is closed.
Return
The updated SocketSession instance.
Parameters
callback
A suspend function to handle the close event.
Sets the callback function to be invoked when the WebSocket session is closed.
The updated SocketSession instance.
A suspend function to handle the close event.