mirror of
https://github.com/django/daphne.git
synced 2025-04-20 00:32:09 +03:00
Fix bad readme example
This commit is contained in:
parent
884dad9277
commit
423e3125ed
|
@ -36,7 +36,7 @@ Here's an example of WebSocket consumers for basic chat::
|
|||
|
||||
redis_conn = redis.Redis("localhost", 6379)
|
||||
|
||||
@Channel.consumer("django.websockets.connect")
|
||||
@Channel.consumer("django.websocket.connect")
|
||||
def ws_connect(path, send_channel, **kwargs):
|
||||
redis_conn.sadd("chatroom", send_channel)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user