Replies: 1 comment 2 replies
-
Oh wow, I was just the simplifying the code even a bit more and now it works. When I changed
(plus on It started working properly. Is this WAI regarding arrays? Perhaps there's some python or flask session detail I'm missing? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to make a simple game using Flask and SocketIO. It seems like I can't get the session to be updated via SocketIO, even after setting
managed_session=False
(I've read https://blog.miguelgrinberg.com/post/flask-socketio-and-the-user-session). The game right now is very simple, a user can only move left, up, down or right. The modifications do not seem to get saved when a button is clicked (e.g. clicking 'right' always returns 3).This is my code:
__init__.py
:__views__.py
:../wsgi.py
:templates/index.html
:Beta Was this translation helpful? Give feedback.
All reactions