diff options
Diffstat (limited to 'protocols/WhatsAppWeb/src/proto.h')
-rw-r--r-- | protocols/WhatsAppWeb/src/proto.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/WhatsAppWeb/src/proto.h b/protocols/WhatsAppWeb/src/proto.h index 28da01d982..1d80ec328f 100644 --- a/protocols/WhatsAppWeb/src/proto.h +++ b/protocols/WhatsAppWeb/src/proto.h @@ -57,13 +57,12 @@ class WhatsAppProto : public PROTO<WhatsAppProto> mir_cs m_csPacketQueue; OBJLIST<WARequest> m_arPacketQueue; - int WSSend(const CMStringA &str, WA_PKT_HANDLER = nullptr); + bool WSReadPacket(int nBytes, const WSHeader &hdr, MBinBuffer &buf); + int WSSend(const CMStringA &str, WA_PKT_HANDLER = nullptr); void OnLoggedIn(void); void OnLoggedOut(void); - void RestoreSession(void); bool ServerThreadWorker(void); - void StartSession(void); void ShutdownSession(void); bool ProcessChallenge(const CMStringA &szChallenge); @@ -71,7 +70,8 @@ class WhatsAppProto : public PROTO<WhatsAppProto> /// Request handlers /////////////////////////////////////////////////////////////////// - void OnRestoreSession(const JSONNode &node); + void OnRestoreSession1(const JSONNode &node); + void OnRestoreSession2(const JSONNode &node); void OnStartSession(const JSONNode &node); void ProcessPacket(const JSONNode &node); |