Pip install channels

Setting.py 文件中添加 ASGI_APPLICATION = "ccic_profile.routing.application"

 

Djaong 中设置WebSocket,实现http中的长连接

Djaong 中设置WebSocket,实现http中的长连接

新建一个文件夹:websocket

Djaong 中设置WebSocket,实现http中的长连接

 

Djaong 中设置WebSocket,实现http中的长连接

 

Djaong 中设置WebSocket,实现http中的长连接

 

相关文章: