Skip to content

Commit

Permalink
Updated error capturing for presence-ws flow
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkonst committed Apr 18, 2024
1 parent fafb548 commit 76c4394
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ulms/api-clients",
"version": "7.2.1",
"version": "7.3.0",
"description": "JavaScript API clients for ULMS platform",
"keywords": [],
"homepage": "https://github.com/foxford/ulms-api-clients-js#readme",
Expand Down
4 changes: 4 additions & 0 deletions src/redux/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ async function startPresenceFlow(
})
}

if (trackError) {
trackError(reason)
}

debug('[flow] disconnected, reason:', reason)
dispatch({
type: PRESENCE_UPDATE,
Expand Down

0 comments on commit 76c4394

Please sign in to comment.