django websocket return number in loop as same as other recieves

痞子三分冷 提交于 2020-01-25 10:13:17

问题


hi guys i really need your help here !

i want create something that send a number from 0 to 100 in python django and all of users that connected to websocket recieves them for example user one opens the page and he gets 0 , 1 , 2 .. and then user two connects to websocket but he dont get them from 0 and he see what user one see's! for example if user one is on number 10 user two start from number 10 as exact user one see's

and after both of users or if 10000 user connected finished the loop loop start's again and all will recieve what other see's !

with no delay with no new number what should i do in django ?

来源:https://stackoverflow.com/questions/59681947/django-websocket-return-number-in-loop-as-same-as-other-recieves

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