docs/upgrading.rst
The Socket.IO protocol recently introduced a series of backwards incompatible changes. The 5.x releases of Flask-SocketIO adopted these changes, and for that reason it can only be used with clients that have also been updated to the current version of the protocol. In particular, this means that the JavaScript client must be upgraded to a 3.x release, and if your client hasn't been upgraded to the latest version of the Socket.IO protocol, then you must use a Flask-SocketIO 4.x release.
The following protocol changes are of importance, as they may affect existing applications:
'/' is not automatically connected anymore, and is
now treated in the same way as other namespaces.sid value, different from the others
and different from the Engine.IO sid.io cookie is not sent to the client anymore by default.