MenuMenu

RTCMultiConnection.socketURL

This property allows you set socket.io signaling server URL

Usage

connection.socketURL = 'https://onlyChangingPort.com:8888/';
connection.socketURL = 'https://separateDomain.com:443/';
connection.socketURL = '/'; // same domain

// or a free signaling server
connection.socketURL = 'https://muazkhan.com:9001/';

Description

parameterdescription
socketURL it is a string
it is recommended to set full-URL
the URL must include port-number as well
include closing slash "/" as well
connection.socketURL = 'https://domain.com:port/';

Remember

You can run nodejs on a separate domain or separate port or on a separate server
You can set socketURL="ip-address" to link nodejs server
You can run RTCMultiConnection-v3 demos on any webpage; whether it is PHP page, ASP.net page, python or ruby page or whatever framework running top over HTML.

Video presentation

Demo

<script src="https://muazkhan.com:9001/dist/RTCMultiConnection.min.js"></script>
<script src="https://muazkhan.com:9001/socket.io/socket.io.js"></script>

<script>
var connection = new RTCMultiConnection();

// this line is VERY_important
connection.socketURL = 'https://muazkhan.com:9001/';

// if you want audio+video conferencing
connection.session = {
    audio: true,
    video: true
};

connection.openOrJoin('your-room-id');
</script>