connect

fun connect(subUrl: String = ""): Session

Creates a Session by trying to connect to the websocket endpoint. When connection was successfully made, you can send and receive message via websockets.

Return

Session when connection was successful

Parameters

subUrl

optional Url to append

Throws

when connection cannot be established