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 type UserFacingSocketConfig = Partial<SocketConfig> & { auth: AuthenticationState }
export enum DisconnectReason { export enum DisconnectReason {
connectionClosed = 428, connectionClosed = 428,
connectionLost = 408, connectionLost = 408,
connectionReplaced = 440, connectionReplaced = 440,
timedOut = 408, timedOut = 408,
loggedOut = 401, loggedOut = 401,
badSession = 500, badSession = 500,
restartRequired = 515, restartRequired = 515,
multideviceMismatch = 411 multideviceMismatch = 411,
blockedNumber = 403,
unavailableService = 503
} }
export type WAInitResponse = { export type WAInitResponse = {