socketURL | RTCMultiConnection

Use your own socket.io server.

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://rtcmulticonnection.herokuapp.com:443/';

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://rtcmulticonnection.herokuapp.com/dist/RTCMultiConnection.min.js"></script>
<script src="https://rtcmulticonnection.herokuapp.com/socket.io/socket.io.js"></script>

<script>
var connection = new RTCMultiConnection();

// this line is VERY_important
connection.socketURL = 'https://rtcmulticonnection.herokuapp.com:443/';

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

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