Skip to content

Commit

Permalink
fix(iso-websocket): add event to error cause
Browse files Browse the repository at this point in the history
closes #252
  • Loading branch information
hugomrdias committed Jul 23, 2024
1 parent e4b0872 commit c47ef92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/iso-websocket/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c47ef92

Please sign in to comment.