I'm using simple socket.io 2.0.3 server without express or anything similar to run simple chat feature in my Laravel app.
Everything was working well until I decided to switch website to HTTPS. Now socket.io refuses to connect (ERR_CONNECTION_CLOSED).
Here is my simplest setup:
server.js:
var io = require('socket.io')(8080, {
origins : //some stuff
});
HTML file
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.3/socket.io.js"></script>
var socket = io(':8080');
//more stuff
I have all needed certificate files in server folder, intermediate.crt, domain.com.crt and domain.com.key
Can someone help with simplest example how to make this work on https? Thanks in advance!
Edit: Need possible solution without using Express.