Tx Socket
The socket connection that will send and receive messages related to calls. This class will trigger the TxSocketListener methods which can be observed to make use of the application
Parameters
host_address
the host address for the websocket to connect to
port
the port that the websocket connection should use
See also
Functions
Link copied to clipboard
fun connect(listener: TelnyxClient, providedHostAddress: String? = Config.TELNYX_PROD_HOST_ADDRESS, providedPort: Int? = Config.TELNYX_PORT, pushmetaData: PushMetaData? = null, onConnected: (Boolean) -> Unit = {}): Job
Connects to the socket with the provided Host Address and Port which were used to create an instance of TxSocket