我的 SocketIO 服务器是一个 Flask 服务器,使用
flask-SocketIO
的 v5.3.4 使用自签名证书侦听端口 1234。我正在尝试使用 websocat 1.11.0
使用命令 连接到它
websocat wss://localhost:1234/socket.io/?transport=websocket -k
但是服务器报错:
127.0.0.1 - - [16/May/2023 22:04:16] "GET /socket.io/?transport=websocket HTTP/1.1" 400 -
The client is using an unsupported version of the Socket.IO or Engine.IO protocols
和
websocat
客户报告
websocat: WebSocketError: WebSocketError: Received unexpected status code (400 Bad Request)
websocat: error running
有没有办法让
websocat
使用更新版本的SocketIO协议?
pip 包: