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.
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.