All Questions
Tagged with websocket django-channels
580
questions
1
vote
0
answers
121
views
Why is my django-channels project not able to connect to Websockets in my Heroku deployed site?
I've been stuck at this for daaaays now and I realise that solution is probably simple but I no matter how much I read here and try I get the same error... When loading the chats part of my site I get ...
0
votes
0
answers
47
views
Django Channels group send doesn't send any data to the group
My websocket works, but doesn't send any data to the group
# settings.py
INSTALLED_APPS = [
'daphne',
# admin interface
'jet',
# django apps
'django.contrib.admin',
'django....
0
votes
0
answers
41
views
problem in real time match-making and lobby implementation
I want to implement a real time match making using web sockets for a 2 playered game .
I checked if there any waiting player by querying the data base (if channel_name``_2 = null). if yes connect ...
-1
votes
2
answers
276
views
web socket url with domain name of backend container but doesnot resolve into ip of backend container
i made a docker container for react app and another for django app . now when i make a websocket call
const socket = new WebSocket(
// `ws://${WEB_SOCKET}:${WEB_SOCKET_PORT}/ws/lobby/`//this ...
-1
votes
1
answer
114
views
Django channels: Save messages to database with duplicates when two or more tabs opened
I'm using this solution for save messages to DB Django channels: Save messages to database
But I have a problem with duplicates (in DB) when the user (message's author) has two or more tabs opened in ...
0
votes
1
answer
157
views
How to apply web socket to all clients and all components in React?
so I try to create websocket like this code in First Component :
import { useState,useEffect } from 'react'
import Routes from './components/routers/Routes'
function App() {
const ws=new ...
0
votes
0
answers
82
views
Django channels - propagate exceptions to the client
I was wondering what is the best practice to propagate exceptions to the client using django-channels.
My client is a Swift iOS app using URLSessionWebSocketTask.
I got 3 main scenarios for example ...
0
votes
0
answers
40
views
Websocket message from Django backend to javascript frontend
So I have correctly setup the Django consumer and routing for my websocket communication with DJango channel. The consumers.py and routing.py are in the same app where I want to use the ws = ...
0
votes
0
answers
38
views
WebSocket connection to 'wss://www.aniconnect.org/ws/chat/AUdZzo8slKKwKvzmUrnmLRfnVkuAYfJj/' failed:
I have been working on a Django chatting application that uses websockets to implement its chatting functionality.
The site was working fine when it was being accessed through an IP address but when I ...
0
votes
0
answers
189
views
I am trying to make chat app api using DRF and web socket and i need to understand how run web socket server
I am beginner with web socket. I have a project with accounts app for custom User model which stored in sqlite database and the authentcation method is JWT, and chat app for chat api which data stored ...
0
votes
1
answer
105
views
Need to start AGSI server with django rest framwork
I am beginner with websocket and I need to make chat with Django channels. when i run the command to start ASGI server i got this error
daphne -b 0.0.0.0 -p 8001 project.asgi:application
raise ...
0
votes
0
answers
43
views
"django.core.exceptions.ImproperlyConfigured: Requested setting LOGGING_CONFIG, but settings are not configured" Error in my site
The error:
(venv) gamedeveloper@animechatapp:~$ sudo journalctl -u gunicorn -n 50
[sudo] password for gamedeveloper:
Sep 30 13:10:33 animechatapp gunicorn[510664]: django.core.exceptions....
-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
...
0
votes
0
answers
76
views
Django signal doesn't execute a function from my consumer
I have a problem regarding my consumer. or Django signal? I wasn't able to send a message from my group in the web socket by using my Django signal to execute the function from my consumer.
I have ...
0
votes
0
answers
62
views
Django websockets connection failed
I have hosted a django application on Linode which includes a chatting functionality. I am using django-channels to implement that functionality. I am not using any particular
technology like Redis, ...