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, }));