If a heartbeat was still pending when a full reconnection was attempted, PhoenixSocket would interpret that as a timed out heartbeat immediately and consider the connection failed.
This PR fixes this by not considering previous heartbeat attempts when re-starting a new connection.
If a heartbeat was still pending when a full reconnection was attempted, PhoenixSocket would interpret that as a timed out heartbeat immediately and consider the connection failed.
This PR fixes this by not considering previous heartbeat attempts when re-starting a new connection.