parser: heartbeat handshake and extension