simplewebrtc / signalmaster

simple socket.io server for webrtc signaling
Other
1.31k stars 486 forks source link

Is it required to Use Express? #134

Closed vinodmap closed 6 years ago

vinodmap commented 6 years ago

I have followed steps 1-4 at https://github.com/andyet/signalmaster. I get {"code":0,"message":"Transport unknown"} when I go to http://localhost:8888/socket.io/. I have generated certs. I then have set NODE_ENV=production. Then on a separate line, I run node server.js. The server runs. However, using this with SimpleWebRTC is not working correctly. Am I able to run this just by doing "node server.js" or is it required to use Express as specified at https://github.com/andyet/signalmaster ? That would be:

var express = require('express') var sockets = require('signalmaster/sockets') var app = express() var server = app.listen(port) sockets(server, config) // config is the same that server.js uses

Please let me know if it is required to use Express, and if that is indeed part of the problem I am having. Thank you.

vinodmap commented 6 years ago

I resolved this issue. See my posts #715 and #710 under the SimpleWebRTC github for my resolution.