From a6f63e15f4a4128cf291fe0a2ae06c088c0f615a Mon Sep 17 00:00:00 2001 From: operator Date: Sun, 19 Apr 2026 05:40:41 +0000 Subject: [PATCH] fix: use 'connect' method with auth.token for gateway handshake Gateway uses JSON-RPC method 'connect' (not 'hello') with auth object containing token field. Co-Authored-By: Claude Opus 4.6 (1M context) --- plugin/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/index.ts b/plugin/index.ts index 6fb1c6e..68aa32a 100644 --- a/plugin/index.ts +++ b/plugin/index.ts @@ -220,13 +220,14 @@ export default { }; client.onopen = () => { + // Gateway uses "connect" method with auth in params client.send(JSON.stringify({ jsonrpc: '2.0', - method: 'hello', + method: 'connect', params: { clientName: 'harbor-forge-calendar', mode: 'backend', - ...(gwToken ? { token: gwToken } : {}), + ...(gwToken ? { auth: { token: gwToken } } : {}), }, id: 1, }));