feat: add legacy connection

This commit is contained in:
Adhiraj Singh
2021-12-17 19:27:04 +05:30
parent 13b49e658d
commit 19a9980492
23 changed files with 2402 additions and 103 deletions

View File

@@ -1,3 +1,5 @@
import { Contact } from "./Contact"
export type WAConnectionState = 'open' | 'connecting' | 'close'
export type ConnectionState = {
@@ -13,5 +15,11 @@ export type ConnectionState = {
/** the current QR code */
qr?: string
/** has the device received all pending notifications while it was offline */
receivedPendingNotifications?: boolean
receivedPendingNotifications?: boolean
/** legacy connection options */
legacy?: {
phoneConnected: boolean
user?: Contact
}
}