tweb-i2p/src/lib/mtproto/connectionStatus.ts
2021-06-22 18:16:23 +03:00

24 lines
462 B
TypeScript

/*
* https://github.com/morethanwords/tweb
* Copyright (C) 2019-2021 Eduard Kuzmenko
* https://github.com/morethanwords/tweb/blob/master/LICENSE
*/
export enum ConnectionStatus {
Connected,
Connecting,
Closed,
TimedOut
};
export type ConnectionStatusChange = {
_: 'networkerStatus',
status: ConnectionStatus,
dcId: number,
name: string,
isFileNetworker: boolean,
isFileDownload: boolean,
isFileUpload: boolean,
retryAt?: number
};