mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 20:03:25 +01:00
Rename files
This commit is contained in:
16
ts/types/SocketStatus.std.ts
Normal file
16
ts/types/SocketStatus.std.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
// 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 = 'CONNECTING',
|
||||
OPEN = 'OPEN',
|
||||
CLOSING = 'CLOSING',
|
||||
CLOSED = 'CLOSED',
|
||||
}
|
||||
|
||||
export type SocketInfo = {
|
||||
status: SocketStatus;
|
||||
lastConnectionTimestamp?: number;
|
||||
};
|
||||
Reference in New Issue
Block a user