Getting Started | RTCMultiConnection

It is recommended to watch this YouTube video that explains how to test and use built-in demos.

Remember: HTTPs is required for camera, microphone or screen sharing.

Simple Video Chat 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>

Simple Text Chat 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 text chat
connection.session = {
    data: true
};

connection.onopen = function(event) {
    connection.send('hello everyone');
};

connection.onmessage = function(event) {
    alert(event.userid + ' said: ' + event.data);
};

connection.openOrJoin('your-room-id');
</script>
For more information: docs/getting-started.md