function encodeOne(packet, doneCallback) {
	    exports.encodePacket(packet, true, true, function(data) {
	      return doneCallback(null, data);
	    });
	  }
Encodes multiple messages (payload) as binary.

<1 = binary, 0 = string><number from 0-9><number from 0-9>[...]<number
255><data>

Example:
1 3 255 1 2 3, if the binary contents are interpreted as 8 bit integers

@param {Array} packets
@return {ArrayBuffer} encoded payload
@api private