调试了半天,出现 websocket is disconnected: Invalid HTTP upgrade 的错误

居然是 URL 地址写错了的原因,端口号之后还有一堆地址没有写上。

 

另外wss协议需要设置 disableSSLCertValidation = true,不然错误如下:

CFNetwork SSLHandshake failed (-9807)

websocket is disconnected: The operation couldn’t be completed. (OSStatus error -9807.)

相关文章:

  • 2021-08-30
  • 2022-12-23
  • 2021-07-18
  • 2021-08-30
  • 2021-11-13
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2021-11-30
  • 2021-06-28
相关资源
相似解决方案