Skip to content

Commit 7cb1c06

Browse files
aweiss-devCopilot
andauthored
fix(websocket): optimise event handling. Add heartbeat [WPB-21950] (#19825)
* fix(lifecycle): optimise online / offline event handling. Add heartbeat for WS * Update src/script/repositories/event/EventRepository.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/script/repositories/event/EventRepository.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/script/repositories/event/EventRepository.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * chore: rename to updateConnectivityStatus * chore: add copilot suggested improvements --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 98b4875 commit 7cb1c06

File tree

5 files changed

+929
-116
lines changed

5 files changed

+929
-116
lines changed

__mocks__/@wireapp/core.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,11 @@ export const util = {
113113
TaskScheduler,
114114
};
115115

116+
export enum ConnectionState {
117+
CLOSED = 'closed',
118+
CONNECTING = 'connecting',
119+
PROCESSING_NOTIFICATIONS = 'processing_notifications',
120+
LIVE = 'live',
121+
}
122+
116123
export {Ciphersuite} from '@wireapp/core-crypto';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@wireapp/avs": "10.2.19",
1717
"@wireapp/avs-debugger": "0.0.7",
1818
"@wireapp/commons": "5.4.9",
19-
"@wireapp/core": "46.46.5",
19+
"@wireapp/core": "^46.46.6-beta.9.457c85ad6",
2020
"@wireapp/kalium-backup": "0.0.4",
2121
"@wireapp/promise-queue": "2.4.9",
2222
"@wireapp/react-ui-kit": "9.69.6",

0 commit comments

Comments
 (0)