当多个客户端连接到我的socketio烧瓶应用程序时,如何实现每个客户端的设置?我所拥有的:def replay(message): if not paused:emit('replay', dict(data=f'private replay'))现在,如果客户端发送暂停事件,我只希望客户机循环暂停。如果我这样实施的话:
我有一个用于http和web套接字( Flask )客户端和服务器之间使用gevent通信的Flask应用程序。我还使用服务器端的会话与Flask会话扩展的应用程序。我使用SocketIO.start_background_task运行后台任务。从这个任务中,我需要访问会话信息,这些信息将用于使用socketio发出消息。This typically means that you attempted to use functionality that