python uwsgi 2.0 websocket实现
我正在使用python开发基于uwsgi 2.0的websocket实现。对于如何将消息从websocket服务器发送到客户端,我有点困惑。如果有人能为我澄清一下,我将不胜感激python uwsgi 2.0 websocket实现,python,websocket,uwsgi,Python,Websocket,Uwsgi,我正在使用python开发基于uwsgi 2.0的websocket实现。对于如何将消息从websocket服务器发送到客户端,我有点困惑。如果有人能为我澄清一下,我将不胜感激 当使用uwsgi.websocket\u send(msg)时,消息是发送到所有连接的客户端还是建立握手的客户端 是否可以使用websocket向一组客户端(通道)发送消息?如果可以,是否有这样的示例 整个api是peer 2 peer,uwsgi.websocket\u发送到当前连接的peer。您需要一个额外的层(通常
uwsgi.websocket\u send(msg)
时,消息是发送到所有连接的客户端还是建立握手的客户端整个api是peer 2 peer,uwsgi.websocket\u发送到当前连接的peer。您需要一个额外的层(通常是redis)来支持房间/通道 这是一个示例(gevent+redis)