Socket.io over Node.js / Demo
socket.io over node.js for webrtc-signaling!

server.js
file
This is the file that I was running on https://webrtcweb.com:9559/
. I'll recommend to modify and use this file.
npm install socketio-over-nodejs
How to use?
In ui.js
files you can find openSocket
method; or in all libraries; you can find openSignalingChannel
method.
var SIGNALING_SERVER = 'https://socketio-over-nodejs2.herokuapp.com:443/';connection { var channel = configchannel || thischannel || 'default-namespace'; var sender = Math + 9999999999; io; var socket = io; socketchannel = channel; socket; socket { socket; }; socket;};
io.connect(URL).emit('new-channel')
starts a new namespace that is used privately or publicly to transmit/exchange appropriate stuff e.g. room-details, participation-requests, SDP, ICE, etc.
openSocket
var config = { var SIGNALING_SERVER = 'https://socketio-over-nodejs2.herokuapp.com:443/'; configchannel = configchannel || locationhref; var sender = Math + 999999999; io; var socket = io; socketchannel = configchannel; socket; socket { socket; }; socket; };
Presence Detection
You can detect presence of a room like this:
var SIGNALING_SERVER = 'https://socketio-over-nodejs2.herokuapp.com:443/'; { var socket = io; socket; socket;} // test whether default channel already created or not!;
License
Socket.io over Node.js is released under MIT licence . Copyright (c) Muaz Khan.