html5 - WebSocket提示错误: WebSocket is already in CLOSING or CLOSED state?
迷茫
迷茫 2017-04-17 11:41:57
0
2
3979

提示错误:

WebSocket is already in CLOSING or CLOSED state?
迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
刘奇

This prompt gives too little information.
If you are a front-end developer, I suggest you open the chrome console and see if there is an error message like the following: WebSocket handshake: Unexpected response code: 404 -
I also saw the close above when I started learning, and then I opened the console and saw this problem: there was a problem with websocket during initialization, which is the three-way handshake

The first idea is: Is the path wrong? Then check the space problem in the front and backend. Then check all the path problems and you can run
The answer on stackoverflow is another answer: http: //stackoverflow.com/ques...

刘奇

Check the status
php xxx.php status
Check the exit_status status code
Then see if an exception is thrown

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template