Hey,
I am using Python, Flask, and Flask-SocketIO for my web application and I am using WebSocket messages
to make my user interfaces better. I am a new user for Render and I am evaluating it first before
purchasing a monthly subscription.
However, my WebSocket server is encountering issues connecting to my Render Websocket Server
and I am getting below errors.
Bad Request 400 WebSocket connection to ‘’ failed: WebSocket is closed before the connection is established.
'wss://my-web-app.onrender.com/socket.io/?EIO=4&transport=websocket&sid=MpztrjYDM6HeY81eAAAJ'
I have tested this locally (localhost) and it works with no issues by the way.
My Javascript uses plain SocketIO
// Establish a Socket.IO connection
var socket = io.connect();
// Listen for the 'eventTracking' event
socket.on("eventTracking", function (msg) {
console.log(msg);
});
I have searched the forum for this but I am not able to make it work.
Anyone have clues? Thank you.