django-channels

Django Websockets Data going to the wrong Socket

和自甴很熟 提交于 2020-12-10 09:13:32
问题 Using Django Websockets + Channels, I create a (One) group and the message back and forth works just fine. Lets call this Group A The problem starts when I open a SECOND group and a SECOND (Lets call this group B) WebSocket connection in a different browser. The messages that I am trying to send to group A (first WebSocket connection), are going to group B (second WebSocket connection). All the messages that belong to group A go to the second WebSocket and the group B messages also go to the

Django Websockets Data going to the wrong Socket

别说谁变了你拦得住时间么 提交于 2020-12-10 09:08:27
问题 Using Django Websockets + Channels, I create a (One) group and the message back and forth works just fine. Lets call this Group A The problem starts when I open a SECOND group and a SECOND (Lets call this group B) WebSocket connection in a different browser. The messages that I am trying to send to group A (first WebSocket connection), are going to group B (second WebSocket connection). All the messages that belong to group A go to the second WebSocket and the group B messages also go to the

Django channels install failure in Windows 10

烂漫一生 提交于 2020-08-23 13:09:51
问题 Here is the environment: OS:windows 10 Django:2.0rc Python:3.6 pip:10.0.0 visual studio community 2017 And the error message: running build_ext building 'twisted.test.raiser' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools Command "c:\users\airy\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Airy\\AppData\\Local\\Temp\\pip

Using django signals in channels consumer classes

﹥>﹥吖頭↗ 提交于 2020-08-21 00:22:46
问题 I am trying to develop an auction type system, where a customer makes an order, and then different stores can offer a price for that order. An interesting part of this system is that when the order is initially created, the available stores will have 60 seconds to make their respective offer. When a first store makes their offer, the "auction" will now only have the next 20 seconds for other stores to make their own offer. If they do make another offer, in this smaller allocated time, then

Using django signals in channels consumer classes

故事扮演 提交于 2020-08-21 00:17:08
问题 I am trying to develop an auction type system, where a customer makes an order, and then different stores can offer a price for that order. An interesting part of this system is that when the order is initially created, the available stores will have 60 seconds to make their respective offer. When a first store makes their offer, the "auction" will now only have the next 20 seconds for other stores to make their own offer. If they do make another offer, in this smaller allocated time, then

Django channels - Client receives message sometimes and not other times till it doesn't recieve it at all

青春壹個敷衍的年華 提交于 2020-08-10 19:31:07
问题 UPDATE I think the issue is with python version. On my localhost it worked fine when I had python 3.6. On production, where the issue appeared first, I have 3.8. After I changed my localhost python version to 3.8 I could see the same issue as was on the production. ORIGINAL POST I am facing an issue with setting up django-channels with Daphne + Nginx. When I reboot the server and open the page in the browser the client gets the list(of items) from websocket. When I refresh the page the list