All Questions
12
questions
0
votes
0
answers
41
views
WebSocket Unit Test Not Working in Django with TransactionTestCase
I'm building a simple app where users can join tables to play chess, connecting via WebSocket. Everything works as intended in the development environment: users can log in, join rooms, sit at tables, ...
0
votes
0
answers
24
views
Django channels web socket not working with nginx and gunicorn in the cloud server
This is my project configuration for Django channels, gunicorn and nginx.
In local machine the django websocket works great. but after deploying to the cloud server it shows this console error:
Mar 27 ...
0
votes
0
answers
38
views
Web Socket don't make connection with Wss /https Django
This is my asgi.py.
import os, django
from django.core.asgi import get_asgi_application
from channels.routing import get_default_application
django_asgi_app = get_asgi_application()
# from django....
1
vote
1
answer
75
views
How can I fix the error of not being able to establish a connection to a Django Channels server with WebSockets using Python and ASGI?
Django channels & websockets : can’t establish a connection to the server.
I am trying to do a real-time drawing app using django channels, websockets & p5.
The only problem I've got is : ...
1
vote
0
answers
213
views
Channels Websocket automatic close after one message
I'm developing a Django based web server which integrates a websocket for data visualizations in real time (my web server reads values from a PLC via OPCUA and displays them in real time on a web page)...
0
votes
1
answer
798
views
How to allow a Channels consumer to access session generated by HTTP requests?
I have a project that used to run under WSGI, and I recently configured it to ASGI. It included code from back then, such as the following function that processes a login request:
def authenticate(req)...
0
votes
0
answers
1k
views
Django Channels ValueError: No route found for path
I follow this tutorial to build a chat system
https://channels.readthedocs.io/en/stable/tutorial/part_1.html
It works fine when the room name is a string without white spaces, say "Room1".
...
2
votes
1
answer
991
views
Django Channels Private Chat server
I am new to Django channels and the ASGI application itself, so I am a bit confused about how to go while building a private chatting app.
There isn't much tutorial for private chats all are for chat ...
6
votes
1
answer
4k
views
Why does django-channels not connect to secure Websockets wss?
Lately I have been developing an app called(DBSF - don't be a sh***y friend), which functions a little bit like facebook, but it reminds you to interact with your friends once in a while.
I've ...
3
votes
1
answer
2k
views
Django Channels 2: How Many Users Is In The Specific Room
I am using django-channels>=2.0.0 and I want to find how many users in "room1". I don't know how to find total connections.
0
votes
0
answers
1k
views
Deployment of Django Channels App in Google Cloud Platform
I am working on my first django channels app and I want to deploy my django channel app in Google Cloud Platform,its working fine in local server,but when I deployed it on Google Cloud Platform,it ...
7
votes
0
answers
964
views
What is the different in Django 3 ASGI and Django 2 + Channels? [duplicate]
django-channels is on my 1st list of material I am going to learn during this new year. But Django 3 also has ASGI feature without any document on it. Then I doubt that what is the different between ...