Sending messages to groups in Django Channels 2

前端 未结 3 862
离开以前
离开以前 2020-12-24 09:24

I am completely stuck in that I cannot get group messaging to work with Channels 2! I have followed all tutorials and docs that I could find, but alas I haven\'t found what

3条回答
  •  旧时难觅i
    2020-12-24 09:39

    Disconnect may not require self.close() since it does this automatically. also try to CHECK routing.py file, I had similar issue but I fixed it by removing AuthMiddlewareStack (I added it back later) and then in my path, I used MyConsumer.as_asgi() instead of just MyConsumer hope it helps

提交回复
热议问题