Socket.io with frappe and external applications

Has anyone successfully made socket.io connection with Frappe and an external (non-frappe)application?
It works fine for me in localhost, but from other domains/systems, it doesn’t work.

Firefox can’t establish a connection to the server at wss://clean-steaks-pull.loca.lt/socket.io/?EIO=4&transport=websocket.

This is unrelated, it’s about realtime (frappe’s implementation of socket.io for internal stuff) not working.

Was a silly mistake, making the server listen to 0.0.0.0 solved it.

If anyone needs the code: