After doing some digging, I've been trying to connect Flask Socketio with a websocket in JS by doing
socket = new Websocket("ws://localhost:5000")
But this wont work, I know that there is another way with Socket.io's own library, but is there any way I can do it like this? Thanks!