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

https cannot support? #23

Open
huyinghuan opened this issue Mar 25, 2014 · 0 comments
Open

https cannot support? #23

huyinghuan opened this issue Mar 25, 2014 · 0 comments

Comments

@huyinghuan
Copy link

I run the demo and everything is fine.
when I modify the server.js code:

var http = require('http');
var server = http.createServer(app);
var webRTC = require('webrtc.io').listen(server);
server.listen(8899);

to

var fs = require('fs');
var options = {
  key: fs.readFileSync(__dirname +'/key.pem','utf8'),
  cert: fs.readFileSync(__dirname +'/cert.pem','utf8')
};
var https = require('https');
var httpsServer = https.createServer(options, app);
var webRTC = require('webrtc.io').listen(httpsServer);
httpsServer.listen(8899)

when open the htpps://xxxhost:8899/ ,there cannot find other user ? anything I have forgotten? Thank you!

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