Skip to main content

All Questions

Tagged with
1 vote
1 answer
31 views

React + Django webapp doesnt show user messages, despite showing server messages which are managed by the same logic both frontend and backend

What the title says, I'm trying to make battleships with websockets, yesterday everything was going more or less smooth, aside from having multiple ws opening so after changing stuff around for a ...
Sostanco's user avatar
0 votes
2 answers
107 views

React and Django connection with channel setup - WebSocket connection failed

I'ved tried to setup Django with channels to provide notification to React. https://github.com/axilaris/react-django-channels <-- I have put my project code here. in backend/backend/settings.py ...
Axil's user avatar
  • 3,211
0 votes
0 answers
33 views

Django Channels WebSocket Authentication with React: Stuck at Handshake

I'm integrating Django Channels WebSockets into my React app and hit a roadblock with user authentication during the WebSocket handshake. Despite setting up everything according to the docs, my ...
Dendalion's user avatar
1 vote
2 answers
79 views

React useContext is undefined in useeffect

I am coding a chat app with django channels and react. I want when a new message is send, to have a className of the current user. I already have the current user in context so I just have to call it ...
zequuee1's user avatar
0 votes
0 answers
52 views

Reactjst-WebSocket is already in CLOSING or CLOSED state

I created chat system using Django and Reactjs,when i want to send Message then in console give me Error of : WebSocket is already in CLOSING or CLOSED state. my code is let socket = new WebSocket(...
Abdul Saboor Hemat's user avatar
3 votes
3 answers
1k views

Display encoded video frames using React and Django

I'm new to web development and have been trying to solve a problem for some time but no luck. I'm using React and Django The thing is, there is a 3rd party application that performs some image ...
Voldemort's user avatar
  • 211
0 votes
1 answer
87 views

Real time application (React + Django)

Just want to get some suggestion on what would be best approach to create a real time application. What architecture and libraries should be used on both sides I have looked int to sockit.io for front ...
Usama kaleem's user avatar
0 votes
1 answer
310 views

Using django channels with websockets (React + django), I am getting an error when sending message from inside useEffect in react

The error is that websocket is still in connection phase. This is the error message in console Uncaught DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state. at ...
bysEcode's user avatar
  • 137
2 votes
1 answer
4k views

Websockets, React + Django

I'm curious if there's a definitive answer on using Websockets, React and Django. From what I've read (1) the preferred way to link React with Django is to use Django Rest Framework (DRF.) (2) The ...
jbuddy_13's user avatar
  • 1,142
2 votes
1 answer
826 views

React Django WebSocket connection challenge

The challenge I am facing is in trying to connect my Django backend with React frontend app. The error that I am getting is: WebSocket connection to 'ws://localhost:8000/ws/week/' failed: _callee$ @ ...
Nabeel Hassan's user avatar
1 vote
1 answer
1k views

Websocket disconnects immediately after handshake (guacamole)

Forgive bad formatting as it is my first question on here, and thanks in advance for reading! I am currently writing a remote web application that utilises Apache Guacamole to allow RDP, VNC, and SSH ...
iewnay's user avatar
  • 11
2 votes
1 answer
1k views

Whats the proper way to transmit updating data to a client via Django websockets?

Currently, I have an element that when clicked, sets up a global cooldown timer that effects all clients with the use of Django websockets. My issue is that while initially the websocket value is ...
clerkvector112's user avatar
1 vote
1 answer
177 views

Setup websockets with Python/Django

Is there some way I could setup my architecture like this for my web application: Backend - Django + DRF (Rest API) Frontend - React And on the backend setup a websocket Client to listen to an ...
user avatar
0 votes
0 answers
353 views

Django throws ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

Sorry in advance if my question looks obscure. This is the error thrown by Django when I'm trying to serve multiple Django media(videos) URLs in my React homepage.This is the stacktrace: ...
The Mask's user avatar
  • 540
0 votes
0 answers
161 views

Why can't I open a websocket connection to Django Rest API

I am using react hooks. When I try to establish a websocket connection to my local Django Rest Api, it says WebSocket connection to 'ws://127.0.0.1:8000/api/' failed: Error during WebSocket handshake:...
Chandler Bing's user avatar

15 30 50 per page