接收消息 #1879
Xiaoxusheng
started this conversation in
General
接收消息
#1879
Replies: 2 comments
-
和 HTTP 上报是一样的, 在文章中提到了 HTTP 上报的包体结构, 是一个 JSON, WebSocket 也是如此, 你会从 go-cqhttp 那里收到一个包含上报信息的 JSON, 通过判断 post_type 来判断这个上报是什么类型. 当然, 你也可以参考 EleCho.GoCqHttpSdk 中对正向 WebSocket 的实现 |
Beta Was this translation helpful? Give feedback.
0 replies
-
另外, 在 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
你好。websocket怎么接收消息,能有例子代码吗
Beta Was this translation helpful? Give feedback.
All reactions