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.
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
, orexplicily 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!