TxSocket

class TxSocket(host_address: String, port: Int) : CoroutineScope

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

Constructors

Link copied to clipboard
constructor(host_address: String, port: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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