onOpen

open fun onOpen(webSocket: IWebSocket, response: Response)

Invoked when a web socket has been accepted by the remote peer and may begin transmitting messages.