All Questions
Tagged with websocket django-channels
580
questions
0
votes
0
answers
64
views
Django Channels Web Socket Connection Keeps Closing
I created the following consumers in my django application to handle real time notifications:
class NotificationConsumer(AsyncWebsocketConsumer):
async def connect(self):
self.room_name = ...
0
votes
1
answer
45
views
How can I get a batch of frames from consumers.py?
I am working on a computer vision project involving object detection and real-time frame streaming using OpenCV and Django. To accomplish this, I am utilizing Django channels. However, I have ...
1
vote
0
answers
245
views
cannot call recv while another coroutine is already waiting for the next message
RuntimeError: cannot call recv while another coroutine is already waiting for the next message
hello
I wrote a counsumer that acts as a middleware that connects to the server socket, for example X, ...
0
votes
0
answers
108
views
django channels error: websocket connection failed
I have a django project what needs websocket connection to send message via django channels.
i coded my project and it's good in my system localhost but when i deploy the project in cPanel it returns ...
0
votes
0
answers
39
views
Django channels unable to connect(find) websocket after dockerize the project
Before trying to containerize the application with docker, it worked well with:
python manage.py runserver
with the following settings.py setction for the redis layer:
CHANNEL_LAYERS = {
"...
0
votes
0
answers
84
views
django celery tasks are executed before establishing a websocket connection
The user uploads the file to the form, after which the form with the file is sent to the server, and upon successful validation, I perform the following actions:
def form_valid(self, form):
...
0
votes
0
answers
46
views
Websocket not receiving messages from Django Channels
I'm currently working on a project using Django Channels for WebSocket communication. However, I'm facing an issue where the WebSocket connection is established successfully, but messages are not ...
0
votes
0
answers
34
views
How implement channels with different chats
enter image description here
I have a Django project in which I need to implement a chat, as in the photo. I tried using django channels, but I was able to implement one specific chat.
How to properly ...
0
votes
0
answers
44
views
Websocket not receiving messages from Django Channels server websocket
I'm currently working on a project using Django Channels for WebSocket communication. However, I'm facing an issue where the WebSocket connection is established successfully, but messages are not ...
0
votes
0
answers
58
views
Websocket not receiving messages from Django Channels server
I'm currently working on a project utilizing Django Channels for WebSocket communication. While the WebSocket connection is successfully established, I'm encountering an issue where messages aren't ...
0
votes
0
answers
131
views
Error loading ASGI app. Could not import module "ChatApp.asgi".(Render..com)
Source code link : https://github.com/ab-h-i-n/ChatApp_Django
The app is working perfectly and loading websockets in localhost. But when i try to deploy it on render.com it showing this error in log.
`...
1
vote
0
answers
44
views
Django: websockets connection issues
I am having issues making websockets connection in my django application.
here is the error message
WebSocket connection to 'ws://127.0.0.1:8000/chat/' failed:
my javascript file
let loc = window....
0
votes
1
answer
28
views
websocket disconnects after hadnshaking Django Channels
I am coding a real time chat using django and channels
My code
consumers.py:
class ChatConsumer(WebsocketConsumer):
def connect(self):
room_hash = self.scope["url_route"]["...
-1
votes
2
answers
150
views
Choose the best backend for real-time wbapp
I have a gps tracking service tha is monitoring data (ex cars) from database on the openlyers map realtime.
I want to use websocket.
So what is the best for backend .
Django channels or nodejs??
I ...
0
votes
1
answer
135
views
`channel_layer.group_send` won't call method in `AsyncWebsocketConsumer`
I wrote a WebSocket connection in a Django app, using Django Channels and I'm testing in my local environment with Daphne (I will use uvicorn for production)
Here's a function that will be called in ...