You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thanks for sharing the great demo repository. Just find a little problem regarding to socketio_emit() in function socketio_notify in background thread. Hoping for your feedback, thanks in advance!
This demo using built in Thread to start a background (rather than using eventlet to spawn a thread), and start the socketio in main thread. Which means that when specific dbus signal is recevied, the socketio_emit() in another thread (background) will be triggered.
But actually when receving the dbus signal, socketio_emit() is triggered but client side won't received any message emit by server.
Since requirements.txt contains eventlet which is the first choice as per flask socketio document. If I added
import eventlet
eventlet.monkey_patch()
at the front of run.py ,
or
explicily setting async_mode to threading as input parameter when initiating socketIO
this problem will be resolved.
Not digging further on eventlet/gevent/threading....If you know , please do not hesitate to tell me.
Hoping for your feedback!
The text was updated successfully, but these errors were encountered:
Hello, thanks for sharing the great demo repository. Just find a little problem regarding to
socketio_emit()
in functionsocketio_notify
in background thread. Hoping for your feedback, thanks in advance!This demo using built in
Thread
to start a background (rather than usingeventlet
to spawn a thread), and start the socketio in main thread. Which means that when specific dbus signal is recevied, thesocketio_emit()
in another thread (background) will be triggered.But actually when receving the dbus signal,
socketio_emit()
is triggered but client side won't received any message emit by server.Since
requirements.txt
containseventlet
which is the first choice as per flask socketio document. If I addedat the front of
run.py
,or
explicily setting
async_mode
tothreading
as input parameter when initiating socketIOthis problem will be resolved.
Not digging further on eventlet/gevent/threading....If you know , please do not hesitate to tell me.
Hoping for your feedback!
The text was updated successfully, but these errors were encountered: