websocat & Flask-SocketIO 版本兼容性

问题描述 投票:0回答:0

我的 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 包:

  • Flask-SocketIO==5.3.4
  • python-socketio==5.8.0
  • 简单网络套接字==0.10.0
  • websockets==10.4
python flask websocket socket.io flask-socketio
© www.soinside.com 2019 - 2024. All rights reserved.