How do I ensure a Django Channels message is sent immediately without delay?

萝らか妹 提交于 2019-12-05 18:55:19
Sander De Wilde

You can add immediately=True as argument to the send function. According to the source:

Sends are delayed until consumer completion. To override this, you may pass immediately=True.

https://github.com/django/channels/blob/master/channels/channel.py#L32

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!