onConnected

abstract var onConnected: () -> Unit

Called when the websocket succesfully connects to the server. You might want to include some initialization here and do the subscriptions.