CharlotteE67/CS305-2022-QA

请问对于websocket的访问失败

Opened this issue · 1 comments

当我访问
就会出现Failed to open a WebSocket connection: invalid Connection header: keep-alive.
You cannot access a WebSocket server directly with a browser. You need a WebSocket client.

控制台报错:Failed to load resource: the server responded with a status of 426 (Upgrade Required)
请问这样该怎么办呢?ws版本9.1

对于websocket版本,请1.运行python文件 2.在浏览器中打开html文件
不可以直接输入127.0.0.1:8765进行访问。我猜是这个原因。