code: function(packet) {
          packet.status = packet.readInt(12);
  
          if (packet.status !== 0) {
              this.emit('error', new Error(`Unknown status code: ${packet.status}`));
              this.close();
          }
  
          debug('Sending handshake');
          this.send(this.packets.newHandshakePacket(packet));
  
          // emit AFTER sending the handshake, in case
          //  they want to login from this callback
          this.emit('shello', packet);
  
          if (this.config.autoLogin) {
              this.login(this.config, (err) => {
                  if (err) debug('Auto-Login error:', err);
                  else debug('Auto-Login success!');
              });
          } else {
              this.emit('ready', this);
          }
      }
docs: SHello