Able to execute any command only at initial registration #444
Unanswered
tfeldmanis
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, and first of all I'd like to thank you for the amazing project. It's uber cool that a thing like this exists in Java universe 🚀
The issue I'm struggling with is the following: both when using mobile and and web builders, I can execute any kind of queries or commands that are not store-related (like a query for contact info or checking if a given number has a whatsapp account) only a single time and only on the session the initialization of the connection is made.
I've tried both with an active and years-old WhatsApp personal account and a fresh one, behavior is the same. Also when trying both with web and mobile connections. Hence, I have a suspicion that I'm simply doing something wrong
Below is a complete version of the script (of course I'm running it with real phone numbers).
If I understand correctly, I should be able to run this script multiple times consequentially, and it should print whether the given phone number has a WhatsApp account. But what I observe is that it works only a single time per an account. Afterwards it connects successfully to the old connection, but execution of the method hasWhatsapp(xxx).join() hangs indefinitely while waiting for a response from websocket
Also, I've tried the latest (0.0.2) version from maven and a locally built version from the sources
Beta Was this translation helpful? Give feedback.
All reactions