Django uses dwebsocket to debug fail:failed:Invalid frame header natively

django uses an online case for dwebsocket, local debugging (what else do you need to do to support local debugging?)
after printing out the Websocket open, chrome reported an error:
websocket connection to "ws://localhost:8000/echo_once/" failed:Invalid frame header
there is a problem with the websocket server, but you don"t know what"s wrong. Please help me.
the company does not allow uploading code. Post a link here (because the code of the following URL has been copied directly after a constant error < del > ~ < / del > still reported an error)
https://www.cnblogs.com/huguo.

there is a link to github at the end of the article, and the source code in the download is changed to run (missing in view-sharp codging: utf-8, is missing because the company cannot directly access the public network, so the settings of static and the jquery reference path are changed, and the rest are not changed)

after running, it is found that there is the same error in connection WebSocket. Ask God for advice

python version 2.7.9
django version 1.9.4

Mar.03,2021

your view is not blocked. After a request, the server closes the connection

Menu