code: function authNeeded () {
  
      if (args.write === true) {
        return true
      }
  
      if (args.channel.indexOf('private-') === 0) {
        return true
      }
  
      if (args.channel.indexOf('presence-') === 0) {
        return true
      }
  
      return false;
    }
docs: Authentication required for write access and for read access to private or presence resources