Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Cyl18 opened this issue Sep 19, 2021 · 4 comments
Open

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

Cyl18 opened this issue Sep 19, 2021 · 4 comments

Comments

@Cyl18
Copy link
Contributor

Cyl18 commented Sep 19, 2021

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
语音/图片/文件上传

@ryoii
Copy link
Collaborator

ryoii commented Sep 20, 2021

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

@GongT
Copy link

GongT commented Oct 13, 2021

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

@Cyl18
Copy link
Contributor Author

Cyl18 commented Jun 18, 2022

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

  • 只用 http
  • 用 http+ws

没有单独使用的选项

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

@bunnyi116
Copy link

bunnyi116 commented Aug 6, 2023

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

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants