After sending a large image, exception "Socket closed" throws.
Here in the examples is recommended to periodically cause
$w->sendPresence();
$w->pollMessage();
the connection is not broken. But how to do it while sending image?
The image is large (4.5 MB), and sending takes 2-3 minutes.
What the timeout is on the whatsapp server? Or the reason in other? In what cases, an exception "Socket closed" occurs?
In what direction to look?
Here is the script. The result of the script - nothing comes to the smartphone.
The script ends with exception "Socket closed".
It's because in 300 seconds, or 3 minutes, I don't know, the server close connection. It's better if you convert your image first, don't you think? Use php-gd.
After sending a large image, exception "Socket closed" throws. Here in the examples is recommended to periodically cause $w->sendPresence(); $w->pollMessage(); the connection is not broken. But how to do it while sending image? The image is large (4.5 MB), and sending takes 2-3 minutes. What the timeout is on the whatsapp server? Or the reason in other? In what cases, an exception "Socket closed" occurs? In what direction to look?
Here is the script. The result of the script - nothing comes to the smartphone. The script ends with exception "Socket closed".