SSL HTTPS Websocket

websocket

#1

I set up a simple websocket using socketio and node today however when i try to connect over secure protocol i get SSL Handshake failed

When i played around with websockets before i remember having to add the certificate in the socket server config but now im using cloudflares free shared ssl how do i set up the socket?

here is how im setting up the server:

var server = require('https').createServer(app);
var io = require('socket.io').listen(server);
server.listen(2053);

what am i doing wrong?


#2

This topic was automatically closed after 30 days. New replies are no longer allowed.