Replies: 1 comment 3 replies
-
wouldn't this be a problem in your client? The logs show that two connected clients were sent the |
Beta Was this translation helpful? Give feedback.
3 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.
-
Hi,
I have a Svelte application that is using the socket.io client, and a python application that is using your socket.io server with eventlet. The important code is in these files:
In my Svelte app I have stores that can be changed by the UI. These stores have listeners that send a
property-changed
event to the python app, where the event is processed. This part works, I have a music player that uses the MPV library and can control e.g. the volume with my Svelte app.The same thing should also work in the other direction. I created an event listener on the MPV player that activates when the position in the current song changes. This listener should then emit the
property-change
event, so that the client updates the progress bar.I can see the following messages in the python output:
But I see nothing on the client side. Also
sio.onAny()
does nothing.Beta Was this translation helpful? Give feedback.
All reactions