Skip to content

Commit

Permalink
fix: update onNotification.js to use 'onreconnecting' event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Prioq committed Aug 29, 2024
1 parent d98abaa commit 7844454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client/onNotification.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ exports.func = function (args) {
notifications.emit('connect', connection)
}

userNotificationConnection.reconnecting = function () {
userNotificationConnection.onreconnecting = function () {
setTimeout(connect, 5000, 0)
notifications.emit('error', new Error('Lost connection, reconnecting'))
return true // Abort reconnection
Expand Down

0 comments on commit 7844454

Please sign in to comment.