Faster WebSocket reconnects

This commit is contained in:
Fedor Indutny 2021-06-09 15:28:54 -07:00 committed by GitHub
parent 3cac4a19e1
commit 17e6ec468e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 940 additions and 677 deletions

View file

@ -1,7 +1,9 @@
// Copyright 2020 Signal Messenger, LLC
// Copyright 2020-2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
export function getSocketStatus(): number {
import { SocketStatus } from '../types/SocketStatus';
export function getSocketStatus(): SocketStatus {
const { getSocketStatus: getMessageReceiverStatus } = window;
return getMessageReceiverStatus();