when ues async_mode='eventlet' client can't get the message from server. #1700
Unanswered
2651084156
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Are you reading the documentation? If you stay with threading, you can install |
Beta Was this translation helpful? Give feedback.
4 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.
-
i use code like this to send message
code
def ioioio(acc):
a = 222
v =111
'''miaoshu'''
time.sleep(1)
'''def client_1():
print('**************************')
emit('server_response',
{'data': pachong.idnumget['data'], 'data2': pachong.idnumget['data2'], 'data3': pachong.idnumget[acc]},
broadcast=True)'''
def getlong():
time.sleep(4)
while True:
if name == 'main':
t11 = threading.Thread(target=getlong, args=())
print('111111++++++++++++++++++')
t11.setDaemon(True)
# socketio.start_background_task(target=getlong,kwargs=())
t11.start()
socketio.run(app, host='0.0.0.0', port=5000,debug=True )
but when i use async_mode='threading') it work
but when use it it can not use websocket
and i want ues websocket
so what can i to slove it
Beta Was this translation helpful? Give feedback.
All reactions