Connects to remote IPs and manages socket connections.
The options for connecting IPs.
Optional
A promise that resolves when the connection is established.
Will throw an error if required parameters are missing or if there is an issue connecting to a remote IP.
const options = { socket,newProducerMethod: newPipeProducer,closedProducerMethod: producerClosed,parameters: connectLocalIpsParameters,};connectLocalIps(options) .then(() => { console.log('Connected to local IPs');}).catch(error => { console.error('Error connecting to local IPs:', error);}); Copy
const options = { socket,newProducerMethod: newPipeProducer,closedProducerMethod: producerClosed,parameters: connectLocalIpsParameters,};connectLocalIps(options) .then(() => { console.log('Connected to local IPs');}).catch(error => { console.error('Error connecting to local IPs:', error);});
Connects to remote IPs and manages socket connections.