问题
I've searched couple of days for it but found nothing to fix this issue.
My client is an iOS device running socket.io v15.2.0 (Oct 17, 2019).
I've followed this post (Implement a WebSocket Using Flask and Socket-IO(Python))
That post described how to connect to the python socket server with a javascript client but even the javascript client has also returned same error :|
Then I checked the compatibility table at this page and found out that the latest version only works with the javascript client versions of 3.x so I checked this website to see the latest version of javascript socket.io client and I changed the version to 3.0.4 then the JS client successfully connected to the python socket server 🥳.
BUT, there is no versioning table for iOS clients at the swift socket.io Github page
Is there any versioning table for iOS/Android clients to show which python-socketio version is compatible with the v15.2.0 of swift socket.io clients?
Error:
The client is using an unsupported version of the Socket.IO or Engine.IO protocols (further occurrences of this error will be logged with level INFO)
127.0.0.1 - - [24/Dec/2020 13:29:15] "GET /socket.io/?transport=polling&b64=1 HTTP/1.1" 400 -
回答1:
after testing many different version finally found the correct versioning to work with swift socket.io 15.2.0
here is the versions:
tornado==5.0
Flask-SocketIO==1.0.0
python-engineio==2.2.0
python-socketio==2.0.0
来源:https://stackoverflow.com/questions/65436640/swift-socket-io-compatible-version-with-server-python-socketio