MenuMenu

RTCMultiConnection.setCustomSocketHandler

Set and create your own signaling implementation

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

Non socket.io? Please use this build: v3.4.6

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);