[Support] Websocket的链接阶段问题 #4357
-
Describe the problem(描述问题)使用websocket时如果需要鉴权,现在暴露出的 OnWSConnection 看起来是在upgrade之后(连接已经建立了?)。因此客户端的表现为,连接成功后连接再断开。正确的期望应该是在upgrade上连接直接被拒绝了。不应该完成upgrade; Midway Versions(Midway 版本)"@midwayjs/core": "^3.20.4", |
Beta Was this translation helpful? Give feedback.
Answered by
czy88840616
Jul 13, 2025
Replies: 1 comment 16 replies
-
|
需要 onUpgrade ? |
Beta Was this translation helpful? Give feedback.
16 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


#4360