Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it required to Use Express? #134

Closed
vinodmap opened this issue Jun 11, 2018 · 1 comment
Closed

Is it required to Use Express? #134

vinodmap opened this issue Jun 11, 2018 · 1 comment

Comments

@vinodmap
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant