Flask SocketIo?

I’m trying to switch from AJAX to some web sockets because as you can see from fly.io, I’ll probaly hit the rate limit one day
image

Has anyone managed to get socketio working on gltich with flask_socketio. I’ve tried using the same port as my web server but on the client side it is unable to connect(using insecurely). I’ve started by using the example from the website, it works but uses the polling interface which is still ajax. Then I tried forcing web sockets and I got connection refused