【发布时间】:2014-04-09 15:47:47
【问题描述】:
我正在尝试将 websockets 与 Django 一起用于我的应用程序的一小部分。
尝试first example 与django-websocket-redis 广播消息
from ws4redis.publisher import RedisPublisher
redis_publisher = RedisPublisher(facility='foobar', broadcast=True)
redis_publisher.publish_message('Hello World')
我实际上正在将消息接收到订阅的客户端,但我收到了这个错误:
“set”命令的参数数量错误 [...] 异常位置 my_virtualenv/local/lib/python2.7/site-packages/redis/connection.py in read_response,第 344 行
(从publish_message() 电话追踪)
我的版本:
Django==1.6.2
django-websocket-redis==0.4.0
redis==2.9.1
有人可以帮我调试吗?
【问题讨论】:
标签: python django websocket redis