The msgfmt directive specifies the format Heartbeat uses in wire.
msgfmt <classic/netstring>
Default is classic.
classic - Heartbeat will convert a message into a string and transmit in wire. Binary values are converted with a base64 library.
netstring - Binary messages will be transmitted directly. This is more efficient since it avoids conversion between string and binary values.
If not sure, choose classic (default).