connect

fun connect()

Connect the chat web socket so chat functions are available.

Throws

if the connection is not in the correct state:

  • it has not been prepared;

  • it is already connected or connecting.