Replies: 2 comments 1 reply
-
You have to explain better what you are doing. Flask-SocketIO is a server, but your non-working error appears to indicate you are doing things in the client that fail. As far as documentation, searching for The correct way to get the |
Beta Was this translation helpful? Give feedback.
-
Thanks.
My goal is to implement socketIO in my Flask project.
Yes, non-working error are in the client, I use it to test the server.
Now I understand why I couldn't find anything about I call in my program # Get environment for this connection
environ = socketio.server.environ.get(sid, {})
# Check auth data
auth = environ.get("socketio", {}).get("auth", {}) |
Beta Was this translation helpful? Give feedback.
-
Hi! does
request.sid
work?example use
request.sid
from:
Flask-SocketIO/example/app.py
Line 122 in e728965
Work -> not work
work
The client receive a SID :)
patch applied
NOT work
The client is rejected by the server :(
Where in documentation
I searched in the documentation about
request.sid
but I didn't find anything.flask-socketio: search "request.sid"
Werkzeug:
assert status_set
It seems normal in development mode from this comment miguelgrinberg/flask-sock#27 (comment)
Beta Was this translation helpful? Give feedback.
All reactions