diff --git a/CHANGELOG.md b/CHANGELOG.md index 82033780..fa212f7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,8 @@ - Upgrade dependencies - #97 Support a Max Queue Size for Buffered Messages -- #98 Set no delay for the first connection +- #94 Set no delay for the first connection - #106 package.json module points to non-existing file - #107 Make isWebSocket check more lenient to support iOS Safari - #102 added startClosed option +- #104 fix error event type diff --git a/reconnecting-websocket.ts b/reconnecting-websocket.ts index 66c23418..c6e8422e 100644 --- a/reconnecting-websocket.ts +++ b/reconnecting-websocket.ts @@ -204,7 +204,7 @@ export default class ReconnectingWebSocket { /** * An event listener to be called when an error occurs */ - public onerror?: (event: Event) => void = undefined; + public onerror?: (event: ErrorEvent) => void = undefined; /** * An event listener to be called when a message is received from the server