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:
+9
-1
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user