reconnectWith

fun reconnectWith(reconnectWith: () -> Payload??): PhoenixNetworkTransport.Builder

Configure the reconnectWhen lambda to apply the returned params to the next socket reconnection. Can be useful in order to reconnect to the server with authorization headers applied

Parameters

reconnectWith

a function returning a Payload that will be passed to the Phoenix Socket as a payload parameter