src code

instance method Client#onOpen

Client#onOpen() → undefined

Event handler that is called after an invokation to Client#connect has been successful, and a proper WebSocket connection has been established. You must implement this function in a subclass to be useful.