diff --git a/src/modules/demo/socket/hello.ts b/src/modules/demo/socket/hello.ts index a0385a0..9260d74 100644 --- a/src/modules/demo/socket/hello.ts +++ b/src/modules/demo/socket/hello.ts @@ -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', '连接成功'); }