3 Commits

Author SHA1 Message Date
lmb
be66a1b346 Fix bin/peerjs 2014-10-18 13:23:09 +01:00
Vsevolod Strukchinsky
2ce55f8e33 Pass server or port option to PeerServer
This allows to initialize websocket server properly
2014-10-18 12:34:14 +01:00
Vsevolod Strukchinsky
9e0d861715 Migrate to express from restify
PeerServer is now instance of express application - this allows to combine it with other express applications.
Listen is deferred - because it now method from express (you can call it later and supply callback for start event).
Constructor now not using `new` (because we mixing in methods to express app)

Closes #36
2014-10-18 12:34:14 +01:00