1、websocket相关

1.1、轮询

1.2、长轮询




1.3、websocket

1.3.1、websocket原理
1.3.2、django框架
asgi.py在django项目同名app目录下


1.3.3、聊天室


django代码总结
小结

1.3.4、群聊(一)
前端代码
后端代码

1.3.5、群聊(二) 推荐使用(较成熟版本)
以下两种方式CHANNEL_LAYERS = {}可以二选一配置

总结

参考资料
1、视频及课件
【django channels实战(websocket底层原理和案例)-哔哩哔哩】 https://b23.tv/XdJpE8b
https://download.csdn.net/download/qq_42740465/88130989
2、其他资料
https://blog.csdn.net/weixin_46371752/article/details/131921951