cchh
cchh
  • 发布:2025-11-13 03:19
  • 更新:2025-11-13 17:01
  • 阅读:16

uni.connectSocket在android上不支持permessage-deflate

分类:uni-app
  headers: Headers {  
    "host": "xxxx.com",  
    "upgrade": "websocket",  
    "connection": "upgrade",  
    "origin": "http://localhost",  
    "sec-websocket-key": "S44rpbZqgjbDG/u9POxu1A==",  
    "sec-websocket-version": "13",  
    "accept-encoding": "gzip",  
    "user-agent": "okhttp/3.12.11",  
    "x-real-ip": "xxx",  
    "x-real-port": "44452",  
    "x-forwarded-proto": "https",  
    "custom": "ok",  
  }

看到anroid上的ws是用okhttp3实现的,但它太老了,能在近期升级到okhttp5 以支持permessage-deflate吗?否则和其他端体验不一致。

2025-11-13 03:19 负责人:无 分享
已邀请:
cchh

cchh (作者)

麻烦官方看一看

要回复问题请先登录注册