Builder
Functions
Link copied to clipboard
Link copied to clipboard
fun channelJoinTimeoutMs(channelJoinTimeoutMs: Long): PhoenixNetworkTransport.Builder
Content copied to clipboard
Set the channel join timeout
Link copied to clipboard
fun idleTimeoutMillis(idleTimeoutMillis: Long): PhoenixNetworkTransport.Builder
Content copied to clipboard
Set the idle timeout
Link copied to clipboard
Link copied to clipboard
Set the socket parameters
Link copied to clipboard
fun reconnectWhen(queueMessages: Boolean = true, reconnectWhen: (Throwable) -> Boolean?): PhoenixNetworkTransport.Builder
Content copied to clipboard
Configure the PhoenixNetworkTransport to reconnect the socket automatically when a network error happens.
Link copied to clipboard
fun reconnectWith(reconnectWith: () -> Payload??): PhoenixNetworkTransport.Builder
Content copied to clipboard
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
Link copied to clipboard
Set the server url
Link copied to clipboard
Set the channel topic