When calling blynk.run(), if no data is received from the server for a while, we would never process the ping messages (heartbeat) which would cause the socket to drop after about 2 minutes.
Calling process() on socket.timeout exceptions will send the heartbeat at the configured frequency and keep the socket connected.
@vshymanskyy please merge this, it's needed, otherwise the current library is pretty useless. Also, please publish a new version so it can be installed via pip.
When calling blynk.run(), if no data is received from the server for a while, we would never process the ping messages (heartbeat) which would cause the socket to drop after about 2 minutes.
Calling process() on socket.timeout exceptions will send the heartbeat at the configured frequency and keep the socket connected.