From 8647c72dc29abc5b3accf4e2fb83bf343f70dcc7 Mon Sep 17 00:00:00 2001 From: tone <3341154833@qq.com> Date: Wed, 15 Oct 2025 12:36:26 +0800 Subject: [PATCH] fix: correct spelling of 'connect' in RPCHandlerEvents and event emission --- src/core/RPCHandler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/RPCHandler.ts b/src/core/RPCHandler.ts index f3bf62a..186f82d 100644 --- a/src/core/RPCHandler.ts +++ b/src/core/RPCHandler.ts @@ -16,7 +16,7 @@ const DefaultConnectOptions = { } as const; interface RPCHandlerEvents { - connnect: RPCSession; + connect: RPCSession; } export class RPCHandler extends EventEmitter { @@ -92,7 +92,7 @@ export class RPCHandler extends EventEmitter { ...options, }).finally(() => { rpcServer.on('connect', rpcSession => { - this.emit('connnect', rpcSession); + this.emit('connect', rpcSession); }) }); }