Skip to main content

All Questions

0 votes
0 answers
20 views

Sending a notification to single user using web socket in django

In my drf project, I have added the functionality where notifications are being broadcasted to all web socket users. What I want is to send notification to single user. I hope I will get a solution to ...
Ghayoor Ali's user avatar
-1 votes
1 answer
216 views

Unable to test websockets by using django channels

I'm trying to test my websockets but i'm getting '404 not found error' I have no idea why im getting error..i checked my code many times but still no use. Please have a look. This is my settings.py ...
Mohit Mishra's user avatar
0 votes
1 answer
1k views

waiting for websocket connection in django channels consumer

I am using Celery and Channels to notify a user when a certain action is performed on the server by another user. On the browser, I am using WebSockets to connect the user to the consumer. ...
Dante 's user avatar
  • 349
0 votes
0 answers
60 views

Django and Websocket giving an error index: WebSocket connection to 'ws://127.0.0.1:8000/ws/chat/example/' failed:

I am following tutorial on django channels and I am getting an error that I can't solve. In web console this is displayed: index(16): WebSocket connection to 'ws://127.0.0.1:8000/ws/chat/example1/' ...
Stefan Vukovic's user avatar
0 votes
1 answer
42 views

Different websocket endpoints with Apache2 vs "manage.py runserver". Django Channels

I have different endpoints when i run Django in apache compare to when I run it in the terminal. Can it be some configuration in apache? I belive it can be this ? Apache 2 conf ProxyPass "/ws/&...
Jesper Johansson's user avatar
0 votes
1 answer
412 views

Forbidden (403) CSRF verification failed. Request aborted-Real time chat application with Django Channels

I'm doing a course from YouTube "Python Django Realtime Chat Project - Full Course" and I'm new to django.My problem is, When I try to send message in room chat (submit form) I get this ...
Help's user avatar
  • 1
1 vote
0 answers
464 views

Django Websocket getting slow as the connected users increases

I am using Django Channels to send messages to the frontend. and the frequency of the messages is one message per second, everything works fine when I am working on local but on production where I ...
Django Developer's user avatar
0 votes
1 answer
1k views

Real time chat application with Django Channels

My real time chat application refuses to send message. no errors at all. I have tried tracing the errors by logging to the console at every stage passed and also tried printing to the terminal. I ...
Nnanyereugo Emmanuel Oguh's user avatar
0 votes
1 answer
534 views

Addition Django Channels to DRF

I'm tryna add channel to my project to send download state percent. I have a method download_file() which downloads file to server from several endpoints. I got to add channels to project, but it's an ...
Kate's user avatar
  • 1
2 votes
1 answer
517 views

How to list all channel_name in a group?

I saw how to get the list of all channel_name in a group in channels 2 but I use channels 3 (3.0.4) Do you know how to get it?
T H's user avatar
  • 499
1 vote
0 answers
442 views

Django Channels: group_send() getting delayed while sending to active window when a user has multiple windows open

Background: I'm working on a chat application on my local (development) server. Python 3.9.5, Django 3.2, Channels 3.0.3. Each user can see an "all messages" section on the page, containing ...
oktested's user avatar
0 votes
0 answers
528 views

How do I go about limiting a group to a certain number of users with Django channels?

So the question is basically how would I limit the number of users to say two. I'm building a app and I basically want two users max in a game room. So at the moment on connect channel is added to ...
Grimm's user avatar
  • 43
1 vote
0 answers
231 views

How to stop Django from hanging after page refresh using channels?

Using channels it connects properly when the page loads the first time but then hangs on refresh. Not sure why this is happening. I've placed the code below to see what might be happening? # index....
Marco Fernandes's user avatar
1 vote
0 answers
336 views

Not able to get Login user in Django Channels using WebsocketConsumer

I am not able to get login user in Django channels. I am using AuthMiddlewareStack but still facing the issue. Django channels error. Using WebsocketConsumer but not able to get current logged in user ...
Abhijeet Gupta's user avatar
3 votes
1 answer
323 views

Django Websockets Data going to the wrong Socket

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 ...
BeetleJuice's user avatar

15 30 50 per page