Implement Legacy Socket Capability in MD Code (#1041)

* feat: add legacy connection

* fix: merge conflict errors

* feat: functional legacy socket
This commit is contained in:
Adhiraj Singh
2021-12-17 20:59:43 +05:30
committed by GitHub
parent 38a44be006
commit d386f2db8b
29 changed files with 3056 additions and 128 deletions
+9 -1
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
}
}