send heartbeat on incoming messages in active buffer
send heartbeat, when changing buffer
send heartbeat according to documentation
Merge pull request #4 from vIiRuS/heartbeat

implement sending heartbeat