Skip to main content

All Questions

-1 votes
1 answer
370 views

Websocket connection through nginx returns 400 - Hixie76 protocol not supported

I have a (fairly complex) django app hosted on AWS via Elastic Beanstalk, and am trying to implement websockets on it, using django-channels Here is the docker-compose.yml file sent to elastic ...
SylvainB's user avatar
  • 4,790
0 votes
1 answer
1k views

WebSocket connection does not happen and connection request gets 400 error NGINX+Daphne+Django+Channels on Ubuntu AWS EC2

I followed tutorial for deploying websockets for Django-channels using Daphne and Nginx. Here is what my NGINX.conf at etc/nginx/sites-enabled/ looks like server { listen 80; server_name ...
Code99's user avatar
  • 43
5 votes
1 answer
12k views

Simple way to integrate websockets to Django Rest Framework application?

My game app uses Vue frontend and Django backend with DRF. Several clients connect to same game session. Sometimes some user does something which has to be reflected also for other users. For that ...
tputkonen's user avatar
  • 5,689
1 vote
1 answer
395 views

Django channels working with ws:// but fails to handshake with wss://

nginx setting server { listen 80 default_server; listen [::]:80 default_server; server_name www.sample.co; return 301 https://$host$request_uri; } server { ssl on; listen 443 ...
Suvodeep Dubey's user avatar
3 votes
1 answer
2k views

Django channels 2 and EC2 / Elasticbeanstalk

My short question, how to setup Django-channels v2 on AWS Elasticbeanstalk? The long and less inviting questions underneath. Thank you in advance! I am trying to set up an elasticbeanstalk instance ...
Espen Finnesand's user avatar