关于 ws 连接的链接识别问题 #842
bin-tenkuu
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
想了一下应该是我的锅, 因为链接识别, 当最后一个字符是 |
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
-
如题, 今天闲着没事看了一下 server/websocket.go ,然后才发现原来 go-cqhttp 没有把 api 和 event 合并
gocqhttp貌似只识别了后缀
/api
和/event
, 原代码:但是我在写ws连接时候, 习惯性的手动带上了一个
/
导致ws地址变成了如下格式:
区别仅仅在于一个
/
, 即导致了原本应该分开标记的api
,event
连接全部标记为了any
,这里用浏览器控制台演示一下:
Beta Was this translation helpful? Give feedback.
All reactions