function encodeBase64Object(packet, callback) {
	  // packet data is an object { base64: true, data: dataAsBase64String }
	  var message = 'b' + exports.packets[packet.type] + packet.data.data;
	  return callback(message);
	}
Encodes a packet.

    <packet type id> [ <data> ]

Example:

    5hello world
    3
    4

Binary is encoded in an identical principle

@api private