All Questions
Tagged with websocket django-channels
580
questions
0
votes
0
answers
31
views
Users may not be connecting to the same websocket - django channels
I’m developing a chat feature using django channels. when a message is sent, It gets created on the server side and I think it’s being broadcasted. in my consumer I'm adding both the sender and ...
0
votes
0
answers
64
views
Django Channels Custom Middleware Not Being Called
With Django 4 and Channels 4
I have a middleware as follows
from channels.middleware import BaseMiddleware
class TokenAuthMiddleware(BaseMiddleware):
async def __call__(self, scope, receive, send)...
1
vote
1
answer
124
views
Django Rest Framework + Django Channels -> [Errno 111] Connect call failed ('127.0.0.1', 6379)
I am programming a project with Django (4.2.6), Django Rest Framework (3.14.0), Channels (4.0.0) and Channels-Redis(4.2.0), which acts as a backend for a mobile application. So far, I haven't had any ...
0
votes
1
answer
68
views
Django channels - Not Found: /ws/stock/track/
I'm following this video, but I don't get the same console output as in the video.
My console output:
[20/Feb/2024 19:09:12] "GET /stocktracker/?stockpicker=AAPL&stockpicker=AMGN HTTP/1.1&...
1
vote
1
answer
71
views
Error in connecting websockets when I push the code to server
I have implemented a Django Channel for real time messages between Group users.
It is working fine on the local system but when I push this to the server, I am getting the error:
WebSocket connection ...
0
votes
0
answers
78
views
group_send() in Django channels
When ever a channel is created I'm adding it in a group. The issue is server sends the message to the latest channel in the group only rather than broadcasting it to the whole group. If I've two ...
0
votes
0
answers
56
views
nginx not upgraded to websocket
i have a Kubernetes cluster in which nginx:1.21.6 is running as a proxy.
Nginx should upgrade the connection to websocket at path /ws/ and forward it to the service http://dev-websocket:8000.
Since ...
0
votes
0
answers
34
views
Django Channels - Sending message to multiple channels
I created a room dict which which stores channels of consumers which belong to a specific group, now when any consumers sends a message i want all the channels to get that message ... but I only know ...
0
votes
0
answers
28
views
Django Channels - Group
If in a group there are two channels, after group_send the event chat.message is handled by chat_message.. and its happening for both the channels because I'm printing the channel names and getting ...
1
vote
1
answer
176
views
Websocket with Django Channels and IIS - No route found for path
I'm trying to deploy my Django application to my IIS server, but my websocket doesn't work when accessing via IIS, only locally. What did I miss?
When I access via IIS:
new WebSocket('ws://server:8000/...
0
votes
0
answers
63
views
Module not found error with Django Channels
I'm completely new to using channels, but have tried two separate installations, and setups to just get a basic version of channels running and am encountering a small issue. I'm assuming I'm probably ...
0
votes
0
answers
27
views
All messages sent at once at the end of all iterations django layers Django-channels
I want to send messages to client side by websocket one by one. Instead they are sent at the end of all iterations at once. I use AsyncWebsocketConsumer, so it should be fine. Another important things ...
0
votes
0
answers
84
views
Django, Redis and channels: Using websockets to pass message to browser page via GET request for notifications
I am trying to set up some async notifications in my django app using redis and channels, and new to websockets!
I'm confused why my consumer methods are being called in a specific order (below). My ...
0
votes
0
answers
99
views
How to send and recieve client webcam MediaStream stream data to django channels for image processing and displaying on client side
I am trying to create a face-detection software using django and opencv, for which I need live stream from client's webcam.
After a lot of search I used bits and pieces and reached this code.
main....
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....