Update DisconnectReason

This commit is contained in:
Bob
2023-12-06 06:51:10 -03:00
committed by GitHub
parent e24947e55a
commit 9d6644755c

View File

@@ -16,14 +16,16 @@ import { SocketConfig } from './Socket'
export type UserFacingSocketConfig = Partial<SocketConfig> & { auth: AuthenticationState }
export enum DisconnectReason {
connectionClosed = 428,
connectionLost = 408,
connectionClosed = 428,
connectionLost = 408,
connectionReplaced = 440,
timedOut = 408,
loggedOut = 401,
loggedOut = 401,
badSession = 500,
restartRequired = 515,
multideviceMismatch = 411
multideviceMismatch = 411,
blockedNumber = 403,
unavailableService = 503
}
export type WAInitResponse = {
@@ -53,4 +55,4 @@ export type WABusinessProfile = {
address?: string
}
export type CurveKeyPair = { private: Uint8Array, public: Uint8Array }
export type CurveKeyPair = { private: Uint8Array, public: Uint8Array }