ConnectIpsOptions

data class ConnectIpsOptions(val consumeSockets: List<Map<String, SocketManager>>, val remIP: List<String>, val apiUserName: String, val apiKey: String? = null, val apiToken: String, val newProducerMethod: suspend (NewPipeProducerOptions) -> Unit? = null, val closedProducerMethod: suspend (ProducerClosedOptions) -> Unit? = null, val joinConsumeRoomMethod: suspend (JoinConsumeRoomOptions) -> Result<Map<String, Any?>>? = null, val parameters: ConnectIpsParameters)

Options for connecting IPs and managing socket connections.

Constructors

Link copied to clipboard
constructor(consumeSockets: List<Map<String, SocketManager>>, remIP: List<String>, apiUserName: String, apiKey: String? = null, apiToken: String, newProducerMethod: suspend (NewPipeProducerOptions) -> Unit? = null, closedProducerMethod: suspend (ProducerClosedOptions) -> Unit? = null, joinConsumeRoomMethod: suspend (JoinConsumeRoomOptions) -> Result<Map<String, Any?>>? = null, parameters: ConnectIpsParameters)

Properties

Link copied to clipboard
val apiKey: String? = null

Optional API key for authentication

Link copied to clipboard

API token for authentication

Link copied to clipboard

API username for authentication

Link copied to clipboard

Optional function to handle closed producer events

Link copied to clipboard

List of socket connections for each IP (initially empty)

Link copied to clipboard

Optional function to handle joining a consume room

Link copied to clipboard

Optional function to handle new producer events

Link copied to clipboard

Parameters object to handle state updates

Link copied to clipboard

List of remote IPs to connect to (e.g., "100.122.1.1", "100.122.1.2")