swrtc-signal-server
This library mimics the signal-server signalmaster for SimpleWebRTC with some important changes.
- Supports
socket.io >= 1.3.0
- Sane API
Why
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 .json
file.
SignalServer = require 'swrtc-signal-server'SocketIo = require 'socket.io'http = require 'http' server = reswriteHead 404 resend'404' serverlisten 1300 io = SocketIolisten server swrtc = rooms: maxClients: 0 turnservers: stunservers: io: io # # or # swrtc = server: server = 'http'Serverlisten # or server: host: '0.0.0.0'port: 1300 io: require'socket.io' server # or io: 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.
Further API
View the source code for more information.
Install
npm install swrtc-signal-server