Help Migrating from flask-sock to Flask SocketIO #1834
Unanswered
sepulworld
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You forgot to explain what is the problem that you are trying to solve. The code is not complete so I cannot run it. I don't know what's wrong with it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all! Ive been trying migrate from flask-sock for a relatively simple use case over to Flask SocketIO but can't quiet get it to work.
Here is my working solution with flask-sock
server side streams some log entries and receive query parameters from client web side
client javascript. This will connect to the web socket on the /ws/logstream url path, pass some parameters and receive logs and put into appropriate spot in the page
Im struggling to understand how to move over to Flask SocketIO. Even when I look at the examples and docs I still can't quiet grasp the changes needed.
Here is my current attempt, but it doesn't work...
server side
Client side
any advice would be highly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions