on
Registers an event listener for a specific event.
Return
The updated SocketSession instance.
Parameters
event
The event name.
callback
A suspend function to handle the event.
Registers an event listener for a specific event.
The updated SocketSession instance.
The event name.
A suspend function to handle the event.