lib/socketio.js
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;
  }
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;
  }
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 ; }
Authentication required for write access and for read access to private or presence resources
Authentication required for write access and for read access to private or presence resources