Gio
It's impossible to distinguish between different packet types (heartbeat, command response etc) because raw traffic viewer is a low-level instrument that knows nothing about the particular protocol structure.
You may export raw packets in both hex and text formats - this is usually handy in the analysis of raw packets.
Or you may query inbound/outbound packets separately using filter options in this REST API call.