From c47ef92c6c43fd663ca961166b1c040e6d748b52 Mon Sep 17 00:00:00 2001 From: Hugo Dias Date: Tue, 23 Jul 2024 16:00:40 +0100 Subject: [PATCH] fix(iso-websocket): add event to error cause closes #252 --- packages/iso-websocket/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/iso-websocket/src/index.js b/packages/iso-websocket/src/index.js index a785530..bb48e13 100644 --- a/packages/iso-websocket/src/index.js +++ b/packages/iso-websocket/src/index.js @@ -321,7 +321,7 @@ export class WS extends TypedEventTarget { const err = new ErrorEvent({ message: 'Websocket error', - error: new Error('Websocket error'), + error: new Error('Websocket error', { cause: event }), }) if (this.onerror) {