Merge pull request #535 from bobpetrov/rr

Update DisconnectReason
This commit is contained in:
ShellTear
2024-01-03 00:09:57 +02:00
committed by GitHub

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,
forbidden = 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 }