on Connect
Sets the callback to be invoked when a WebSocket connection is established.
Return
The SocketBuilder instance for chaining.
Parameters
block
A suspend function that will be called upon connection.
Sets the callback to be invoked when a WebSocket connection is established.
The SocketBuilder instance for chaining.
A suspend function that will be called upon connection.