I have an application that works with socket.io. But when I connect to the server:
let socket = io.connect('https://my-url.glitch.me', {secure: true});
Server:
io.on('connection', socket => {
console.log(socket.handshake.secure);
});
The console displays that “socket.handshake.secure” is “false” ! But why? After all, the application uses a secure https connection, so “socket.handshake.secure” must be “true”. Who knows what’s going on? I will be grateful for your help.