Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GET https://mydomain.link:3000/socket.io/?EIO=3&transport=polling&t=1502934404775-5 net::ERR_INSECURE_RESPONSE
- var https = require('https');
- var fs = require('fs');
- var ssl_server_key = 'server_key.pem';
- var ssl_server_crt = 'server_crt.pem';
- var port = process.env.PORT || 3000;
- var options = {
- key: fs.readFileSync(ssl_server_key),
- cert: fs.readFileSync(ssl_server_crt)
- };
- https.createServer(options, function (req,res) {
- res.writeHead(200, {
- 'Content-Type': 'text/plain'
- });
- res.end("Hello, worldn");
- }).listen(port);
- $(function(){
- var socket = io.connect('https://mydomain.link:3000');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement