if (!isConnected()) {
connect();
}
return true;
case MSG_HEARTBEAT:
<BUG>Log.d(TAG, "Heartbeat initiated, reason: " + msg.obj);
</BUG>
if (isConnected()) {
HeartbeatPing.Builder ping = new HeartbeatPing.Builder();
if (inputStream.newStreamIdAvailable()) {

if (!isConnected()) {
connect();
}
return true;
case MSG_HEARTBEAT:
logd("Heartbeat initiated, reason: " + msg.obj);
if (isConnected()) {
HeartbeatPing.Builder ping = new HeartbeatPing.Builder();
if (inputStream.newStreamIdAvailable()) {
