This library mimics the signal-server signalmaster for SimpleWebRTC with some important changes.
socket.io >= 1.3.0
- Sane API
SimpleWebRtc is garbage in terms of code quality, API and documentation. We all know that, but it's the least garbage library for webrtc which is being currently maintained (as of July 2015).
It is programmatic friendly and not tied to a
SignalServer = require 'swrtc-signal-server'SocketIo = require 'socket.io'http = require 'http'server =reswriteHead 404resend'404'serverlisten 1300io = SocketIolisten serverswrtc =rooms:maxClients: 0turnservers:stunservers:io: io## or#swrtc =server: server = 'http'Serverlisten# orserver: host: '0.0.0.0'port: 1300io: require'socket.io' server# orio: null # Will use the above http server or config# Woo...
Eventually when a better library surfaces/I create it out of searing frustration, this library can then be trashed.
View the source code for more information.
npm install swrtc-signal-server