From f5cd911b70c41542166edecc674e12a9d1a6f8a4 Mon Sep 17 00:00:00 2001 From: COOL Date: Fri, 15 Apr 2022 09:17:06 +0800 Subject: [PATCH] =?UTF-8?q?socket=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/demo/socket/hello.ts | 1 + 1 file changed, 1 insertion(+) 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', '连接成功'); }