chore: make "auth" mandatory in SocketConfig

This commit is contained in:
Adhiraj Singh
2022-05-25 12:13:17 +05:30
parent 59652a5368
commit ed557967d1
3 changed files with 6 additions and 14 deletions

View File

@@ -37,6 +37,8 @@ export type SocketConfig = CommonSocketConfig<AuthenticationState> & {
getMessage: (key: proto.IMessageKey) => Promise<proto.IMessage | undefined>
}
export type UserFacingSocketConfig = Partial<SocketConfig> & { auth: AuthenticationState }
export enum DisconnectReason {
connectionClosed = 428,
connectionLost = 408,