2017-09-21 17 views
1

私はかなり新しいdjangoチャンネルです。私は、リアルタイムチャットアプリケーションを作成するためにthis tutorialを読んで、私はChromeでこのエラーdjango channels:接続が確立する前にWebSocketが閉じています

を持っている:Firefoxで

WebSocket connection to 'ws://127.0.0.1:8000/chat/stream/' failed: WebSocket is closed before the connection is established.

Firefox can't establish a connection to the server at ws://127.0.0.1:8001/chat/stream/.

The connection to ws://127.0.0.1:8001/chat/stream/ was interrupted while the page was loading.

私を助けてください。どうもありがとう。

+1

は私たちにコードを表示してください。コンシューマとルーティングから始めることをお勧めします。 – hoefling

答えて

0

あなたはあなたのコードでこれを逃すことがあります。

message.reply_channel.send({"accept": True}) 

ws_connect

関連する問題