reconnect

suspend fun reconnect(scope: CoroutineScope, queueMessages: Boolean = true)

Reconnects the PhxSocket with parameters specified by the reconnectWith lambda.

Return

Unit

Parameters

scope

the current Coroutine scope.

queueMessages

a boolean indicating whether or not all already registered subscriptions should try to subscribe again