connect

abstract fun connect(useSSL: Boolean = true, reconnectOnFailure: Boolean = true, eventsGroups: Set<WebSocketEvent.Group> = setOf( WebSocketEvent.Group.PHOTOS, WebSocketEvent.Group.FAMILY, WebSocketEvent.Group.FILES, ))

Establishes a websocket connection.

Parameters

useSSL

Use SSL protocol. Default true.

reconnectOnFailure

Try reconnect when failure. Default true.

eventsGroups

Groups of events that will arrive via the websocket. Some groups are used by other libraries. If you don't use some of them, just remove them from the set.

Throws

SessionIsNotInitializedException

Session is not active