Replies: 2 comments 7 replies
-
I tried the same as in this example with a background thread and using the same emit as above: Could the invocation of the callback function have something to do with it? |
Beta Was this translation helpful? Give feedback.
-
You need to pass the namespace explicitly, because when you don't pass it the emit tries to get it from the context. Basically, add |
Beta Was this translation helpful? Give feedback.
-
Hi,
I want to emit from a callback function which is invoked by another python module.
This example is working fine.
change_clb
is a function which I pass to another python module. I can see the log messages, but not the messages in the websocket.Any idea what I'm doing wrong or what needs to be considered when emitting from outside a request context?
Beta Was this translation helpful? Give feedback.
All reactions