-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use pollMessage() instead
- Loading branch information
Showing
6 changed files
with
11 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,5 +53,5 @@ function onSyncResult($result) | |
//wait for response | ||
while(true) | ||
{ | ||
$wa->pollMessages(); | ||
$wa->pollMessage(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46494f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't use pollMessages() in my project, but could you explain your reason removing it ?
46494f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because people were using it all over the place and then complaining about how slow WhatsAPI was. No shit.
46494f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi shirioko,
Whats while($w->pollMessage()) VS $w->pollMessage() !?
I send messages without pollMessage() after it, Does it matter or wrong.
Thanx.
46494f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I swear to god if I see one more "?!" or "??" or "!!"...
You don't need to call pollMessage() after sendMessage() as it already makes a call to waitForServer();
46494f3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi shirioko,
When I receive a message, it is encrypted. What am I doing wrong?
exemple:
[data:ProtocolNode:private] => ?ۚ!Uÿ4???o??$E?˒??Յ9?+?i?O?"<!?T?[?<(~???Fݐ???<ݛ?BWysZ.N"B3
!t?%(iݿ?m???[{?m?Q???n?8??kr""._???p?Y?K?lg?<??r?L(،ģ0