Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebSocket connection to 'ws://localhost:9001/?' failed #10

Open
looeee opened this issue Jul 2, 2020 · 1 comment
Open

WebSocket connection to 'ws://localhost:9001/?' failed #10

looeee opened this issue Jul 2, 2020 · 1 comment

Comments

@looeee
Copy link

looeee commented Jul 2, 2020

I've set up the config exactly as described in the readme. I have tested multiple ports, including 443, 8000, 8080, 35729, 9001, 9999 on Firefox and Chrome. All give the same error:

livesync.js:11 WebSocket connection to 'ws://localhost:9001/?' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

I'm using windows. Tracking down other people with this error, it seems like browsers have increased security restrictions to require a SSL cert for WebSocket connections. Is this correct? Does it mean there's no way to use this with normal Django runserver anymore?

EDIT: I have tried using django-sslserver to load the site on HTTPS but it makes no difference.

@jaroslaw-janikowski
Copy link

Same thing here

Error message:

Firefox can’t establish a connection to the server at ws://localhost:8001/?. 
livesync.js:11:22

My setup

Django==3.1.4
django-livesync==0.5
watchdog==1.0.2
websocket-client==0.57.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants