Replies: 1 comment 7 replies
-
OnWSConnection 方法有 socket 和 request 两个参数,request 即为 http 的 request。 |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我现在使用koa与midwayjs/socketio。我现在使用了全局中间件,去验证每次连接的认证是否有问题。我现在有两个不同的websocket接口,一个需要认证,一个是开放的。我怎么可以根据地址的一些特征去判断是否需要认证呢。也就是想问我怎么能拿到每次请求连接的地址。感谢
Beta Was this translation helpful? Give feedback.
All reactions