RTCMultiConnection Docs

RTCMultiConnection.setCustomSocketHandler | "method"

HOME © Muaz Khan . @WebRTCWeb . Github . Latest issues . What's New?

"connection.setCustomSocketHandler" method allows you bypass/skip socket.io and use your own signaling gateway/implementation.

"setCustomSocketHandler" method requires RTCMultiConnection >= v3.

Firebase signaling

// link => /dev/globals.js
// link => /dev/FirebaseConnection.js

var connection = new RTCMultiConnection();

connection.firebase = 'your-firebase-account';

// below line replaces FirebaseConnection
connection.setCustomSocketHandler(FirebaseConnection);

PubNub signaling

// link => /dev/globals.js
// link => /dev/PubNubConnection.js

var connection = new RTCMultiConnection();

// below line replaces PubNubConnection
connection.setCustomSocketHandler(PubNubConnection);

SIP/SignalR/WebSync/XHR signaling

// link => /dev/globals.js
// link => /dev/[Relevant]Connection.js

var connection = new RTCMultiConnection();

// SignalR (requires /dev/SignalRConnection.js)
connection.setCustomSocketHandler(SignalRConnection);

// WebSync (requires /dev/WebSyncConnection.js)
connection.setCustomSocketHandler(WebSyncConnection);

// XHR (requires /dev/XHRConnection.js)
connection.setCustomSocketHandler(XHRConnection);

// Sip (requires /dev/SipConnection.js)
connection.setCustomSocketHandler(SipConnection);

Latest Issues

Want to ask a Question?

You can include your email for private conversation!

Latest Updates