Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$wa->sendSync($numbers); Time Limit #821

Open
jammy666 opened this issue Jul 4, 2014 · 15 comments
Open

$wa->sendSync($numbers); Time Limit #821

jammy666 opened this issue Jul 4, 2014 · 15 comments

Comments

@jammy666
Copy link

jammy666 commented Jul 4, 2014

i just want to know how much numbers i can check in one hour? and what are the limitations for checking numbers?

Or it need few seconds or minutes interval before checking another number within a loop?

anyone can provide clear answer please?

i search lot but was not able to understand it correctly

@mgp25
Copy link
Contributor

mgp25 commented Jul 4, 2014

You can sync incrementally no need to do it at once, or sync the contacts as you interact with them. You can sync the numbers you want but if you do it many times you will get an error, backoff time, about 1 hour.

When you sync you have a contacts array, so there is no need to do a while loop. Use mode="delta" to send them incrementally

@jammy666
Copy link
Author

jammy666 commented Jul 4, 2014

thanks for the answer.
im actually having these doubts.

  1. what exactly is backoff time, 1 hour? ( when it is required? )

  2. how many contact i can have in an array?

what should be the criteria if i check 100K numbers?

@mgp25
Copy link
Contributor

mgp25 commented Jul 4, 2014

  1. When you try to send sync many times it throw you an error node, it is to prevent to sync all the time, thats why.

  2. Try to think like a real user/mobile application would work. Do you think syncing 100k numbers at once its a good idea? And i dont know how many contacts you can sync at once but try to be discreet

@jammy666
Copy link
Author

jammy666 commented Jul 4, 2014

im sorry my friend but im not getting clear with 1st point :(
2) i did not mean, i want to sync 100K numbers at once. I just asked what should be the logic with backoff time 1 hour to sync 100K numbers so it go smooth and return no error.

for example

100 numbers at once in an array
then another 100 numbers ( OR the Array LIMIT )

but the problem is, Im not getting clearly first poin. Or im not able to understand :-|

@shirioko
Copy link
Contributor

shirioko commented Jul 4, 2014

Point 1 is that the server will tell you when to back off and for how long.

@jammy666
Copy link
Author

jammy666 commented Jul 4, 2014

okay,
So you mean. once i reach to the backoff time limit then server will return an error with the time ( ex : 60 minutes )

so my account will be able to sync contact after 60 minutes.

is it?

@shirioko
Copy link
Contributor

shirioko commented Jul 4, 2014

Exactly.

@jammy666
Copy link
Author

jammy666 commented Jul 4, 2014

One stupid question.
is it possible for server to return the error if i try same number in a loop just to check error?
because i dont have too much numbers to sync

@shirioko
Copy link
Contributor

shirioko commented Jul 4, 2014

No you shouldn't receive an error for sending the same numbers twice based on the numbers. The backoff results from the quantity and interval of sync.

@jammy666
Copy link
Author

jammy666 commented Jul 4, 2014

i think then i should increment number by 1 in a loop and sync. Then i think it will return error :)

@pmuralikrishna111
Copy link

I have question, sorry if it was already answered in any of issue.

Do we need to sync contacts everytime when we connect to WhatApp. or only once is fine?

I have saw a comment mentioned as before sending message send a sync request? is it a good idea to sync everytime when sending a message?

@mgp25
Copy link
Contributor

mgp25 commented Jul 12, 2014

searrrch

use it, and nope

@pmuralikrishna111
Copy link

I understood sync once and do it as incremental with mode delta. I am correct?

@mgp25
Copy link
Contributor

mgp25 commented Jul 13, 2014

#762
use the search bar

@pmuralikrishna111
Copy link

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants