Closed MorningLightMountain713 closed 4 months ago
I've tested this on a node running ubuntu 18 and nodejs 14 - inbound / outbound connections work fine.
I've tested socket.io with the debug page - works fine.
I haven't tested the terminal page (no apps to connect to) - I assume this works if the debug does.
What this pull does
express-ws
FluxServer
this is an http server with socket.io and native websockets.apiServer.js
server.js
I have this running on a live node now.
Can just do this now, and it sorts everything out, including all the express routes, websocket and socket.io stuff:
This pull fixes an issue we were having where the native websocket server was greeding all the websocket upgrades, so socket.io was forced to use polling only.
Now we handle the http upgrade manually, and pass this on based on the path to the correct server.
This prevents these errors in the console:
ToDo: