connect

suspend fun connect(): SocketFlow?

Connects to the Phoenix Socket. Suspends until the server acknowledges the connection.

Internally, calling this function launches a long-living coroutine listening for SocketEvent that will either:

Return

a SharedFlow of SocketEvent