Files
Signal-Desktop/ts/types/SocketStatus.ts
2020-11-04 13:03:13 -06:00

12 lines
312 B
TypeScript

// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
// 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,
}