Connects to a local media socket using the provided connection options.
The connection options.
A promise that resolves to the connected socket and data.
const options = { link: 'http://localhost:3000',};try { const { socket, data } = await connectLocalSocket(options); console.log('Connected to socket:', socket, data);} catch (error) { console.error('Failed to connect to socket:', error);} Copy
const options = { link: 'http://localhost:3000',};try { const { socket, data } = await connectLocalSocket(options); console.log('Connected to socket:', socket, data);} catch (error) { console.error('Failed to connect to socket:', error);}
Connects to a local media socket using the provided connection options.