当前位置: 代码迷 >> 综合 >> websocket failed One or more reserved bits are on: reserved1 = 0, reserved2 = 1, reserved3 = 1
  详细解决方案

websocket failed One or more reserved bits are on: reserved1 = 0, reserved2 = 1, reserved3 = 1

热度:78   发布时间:2024-02-28 13:59:01.0

最新使用websocket 经gateway转发后报错

WebSocket connection to 'ws://192.168.0.153:9000/socket_listener_1_WINDOWS.php' failed: One or more reserved bits are on: reserved1 = 0, reserved2 = 1, reserved3 = 1

经常一遍google,结果是一堆杀毒软件问题,真是奇怪,回头看报错栈信息,一行行追踪,终于发现是请求格式问题,转发消息时,应使用ws,如果用http,则会出现上述错误。

  相关解决方案