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

js 链接 一直连不上 #2

Open
guanwenjie opened this issue Jun 12, 2019 · 4 comments
Open

js 链接 一直连不上 #2

guanwenjie opened this issue Jun 12, 2019 · 4 comments

Comments

@guanwenjie
Copy link

js ws:// window.localhost.host /ws/chat

console_log:
failed: Error during WebSocket handshake: net::ERR_CONNECTION_RESET

@darkflamecrow
Copy link

我也是遇到了同样的问题

@YuanBian96
Copy link

一样的错误,不知道怎么解决。

@YuanBian96
Copy link

原因是没开启redis-sever,6379端口是redis服务器的端口
参考:django/channels#1089

@blackball9
Copy link

settings中的CHANNEL_LAYERS中的host改下地址,开启下Redis就可以了

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

4 participants