code: function parse(packet) {
      if ('object' === typeof packet) return packet;
  
      try { return JSON.parse(packet); }
      catch (e) { return failed(e); }
    }
docs: Parse the packet.
  
  @param {String} packet The encoded message.
  @returns {Object}
  @api private