SSL HTTPS Websocket

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('').listen(server);

what am i doing wrong?

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