Socket.io for NodeJS doesn\'t seem to work as a websocket server
For some reason, socket.io ALWAYS fallback to the long polling and if I force the w
Slightly related to what @Lucas Klaassen answered: I had the following:
let express = require('express');
let app = express();
let http = require('http').Server(app);
let io = require('socket.io')(http);
// this is the culprit:
app.listen(port);
Changing last line is what fixed it:
http.listen(port);