connect

fun connect(providedServerConfig: TxServerConfiguration = TxServerConfiguration(), credentialConfig: CredentialConfig, txPushMetaData: String? = null, autoLogin: Boolean = true)

Connects to the socket using this client as the listener Will respond with 'No Network Connection' if there is no network available

Parameters

providedServerConfig

, the TxServerConfiguration used to connect to the socket

txPushMetaData

, the push metadata used to connect to a call from push (Get this from push notification - fcm data payload) required fot push calls to work

autoLogin

, if true, the SDK will automatically log in with the provided credentials on connection established We recommend setting this to true

See also


fun connect(providedServerConfig: TxServerConfiguration = TxServerConfiguration(), tokenConfig: TokenConfig, txPushMetaData: String? = null, autoLogin: Boolean = true)


fun connect(providedServerConfig: TxServerConfiguration = TxServerConfiguration(), txPushMetaData: String? = null)

Deprecated

this telnyxclient.connect is deprecated. Use telnyxclient.connect(providedServerConfig,txPushMetaData,credential or tokenLogin) instead.

Connects to the socket using this client as the listener Will respond with 'No Network Connection' if there is no network available

Parameters

providedServerConfig

, the TxServerConfiguration used to connect to the socket

txPushMetaData

, the push metadata used to connect to a call from push (Get this from push notification - fcm data payload) required fot push calls to work

See also