mirai-api-http icon indicating copy to clipboard operation
mirai-api-http copied to clipboard

WebSocket adapter 文档的独有接口未完善

Open Cyl18 opened this issue 3 years ago • 4 comments

https://github.com/project-mirai/mirai-api-http/blob/master/docs/adapter/WebsocketAdapter.md#%E5%9B%BE%E7%89%87%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0 语音/图片/文件上传

Cyl18 avatar Sep 19 '21 23:09 Cyl18

websocket 的文件上传涉及到 socket 阻塞,所以还没有做

ryoii avatar Sep 20 '21 16:09 ryoii

是不是现在只能用http先上传文件?

GongT avatar Oct 13 '21 14:10 GongT

我的理解是目前连接mah2可以采用两种方案:

  • 只用 http
  • 用 http+ws

没有单独使用的选项

这样大概会造成一些麻烦(指配置文件需要写两个adapter 意义不明)...? 或者我的理解有问题

Cyl18 avatar Jun 18 '22 13:06 Cyl18

websocket 的文件上传涉及到 socket 阻塞,所以还没有做

阻塞问题可以新建一个websocket连接,专门用于上传文件,用完断开。

注:这里只是针对ws情况,虽然有http

bunnyi116 avatar Aug 06 '23 15:08 bunnyi116