Replies: 1 comment 1 reply
-
Read about rooms in the documentation. You cannot share a connection, but you can group your clients into rooms and emit messages to them together. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm trying to develop a simple website. The environment is Flask, Flask-socketio, jquery, html, javascript, Apache httpd server with wSGI daemon. The jquery is used to transfer data (json format) between the server and the client html pages.
I'm stuck in the implementation of a progress bar for some time-consuming functions. Thanks to the flask-socketio and following https://www.youtube.com/watch?v=bUfUKtJqaxQ, I can figure out a simple progressbar, it runs OK in the html pages.
For example, I have three html pages,
index.html
,A.html
andB.html
. BothA.html
andB.html
have a progressbar respectively. In each of them, one independent socket connection was created and listens the specified message emitted from the server.However, it seems the html pages will be stuck if both
A
andB
are opened in one browser. Is it possible to create one single socket connection for one user/client? For example, in theindex.html
, one global socket connection was created and shared withA.html
andB.html
? I've tried searching in Google, and no fortunate got it worked.Could you please share some ideas for my case? Much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions