mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2024-11-01 06:02:39 +08:00
socket参数
This commit is contained in:
parent
790d2db01f
commit
f5cd911b70
@ -16,6 +16,7 @@ export class HelloController {
|
||||
@OnWSConnection()
|
||||
async onConnectionMethod() {
|
||||
console.log('on client connect', this.ctx.id);
|
||||
console.log('参数', this.ctx.handshake.query);
|
||||
this.ctx.emit('data', '连接成功');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user