Skip to main content

All Questions

0 votes
0 answers
36 views

How to connect multiple authenticated clients' with Django channels and clients should be connected before opening the channels?

So I'm working on a desktop based app that requires a socket to handle multiple authenticated clients with a Django channel, and clients should be authenticated by the server before opening the ...
Kaumudi Kalikar's user avatar
0 votes
0 answers
23 views

Django channels async websocket group_send not working

I've created an async web socket with the below code: class AgentSessionAsyncConsumer(AsyncJsonWebsocketConsumer): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) ...
Shreya Sharma's user avatar
1 vote
1 answer
522 views

Django channels consumer not receiving data

I'm trying to write a websocket consumer that gets all unread notifications as well as all notifications being created while the client is still connected to the websocket. I'm able to connect to the ...
fullstacknoob's user avatar
0 votes
1 answer
1k views

Unable to fetch model data in Django Async conusmers . working in channels and websockets

I am working on a chat application with channels and websockets using async programming. I am unable to get the model data / object in consumers.py but able to create one . As someone in the group ...
Om Kashyap's user avatar
1 vote
0 answers
297 views

Django channels: Coroutine object is not callale

I'm making a custom token authentication backend for my django channels app. I'm trying to setup the self.scope['user'] as follows. This is my middleware.py file class TokenAuthMiddleware: ""...
Ameer Hamza's user avatar
1 vote
1 answer
1k views

Custom Django Channels middleware not finishing processing before Websocket connects

I have an existing WSGI application which I'm adding Django Channels to to give websocket functionality. I created a consumer using WebsocketConsumer, added the custom middleware into the routing ...
JayBee's user avatar
  • 540
1 vote
1 answer
651 views

Using a synchronous celery callback in an async django channels websocket

In our django-channels async consumer, i'm trying to retrieve a group result. This result may or may not be complete, and therefor i would like to add a callback to pipe results as they become ready. ...
hhoogg's user avatar
  • 41