From 6f6795dc1f9d221ab61b003795222b6f438511c5 Mon Sep 17 00:00:00 2001 From: Bastiaan <17990055+bbassie@users.noreply.github.com> Date: Thu, 15 Oct 2026 10:56:09 +0200 Subject: [PATCH] Pass the event name to web controllerConnectionEvent handlers (#1085) The web interface registered the hook's listener directly on the connector, so handlers got the connector's emit arguments (the hello data for connect, nothing for the rest) instead of the event name. Fixes #1083 Co-authored-by: Claude Opus 5.5 --- packages/web_ui/src/util/websocket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web_ui/src/util/websocket.ts b/packages/web_ui/src/util/websocket.ts index 265b0c18..6695880b 100644 --- a/packages/web_ui/src/util/websocket.ts +++ b/packages/web_ui/src/util/websocket.ts @@ -106,7 +106,7 @@ export class Control extends lib.Link { }); for (let event of ["connect", "drop", "resume", "close"] as const) { - this.connector.on(event, this.hooks.controllerConnectionEvent.listener); + this.connector.on(event, () => this.hooks.controllerConnectionEvent.invoke(event)); } this.handle(lib.AccountUpdateEvent, this.handleAccountUpdateEvent.bind(this));