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

@ -4,8 +4,8 @@
// Maps to values found here: https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/readyState
// which are returned by libtextsecure's MessageReceiver
export enum SocketStatus {
CONNECTING,
OPEN,
CLOSING,
CLOSED,
CONNECTING = 'CONNECTING',
OPEN = 'OPEN',
CLOSING = 'CLOSING',
CLOSED = 'CLOSED',
}