lib/RemoteSlave.js
/**
   * Kills the slave process by sending a singal to the master proxy server.
   * @param {String} signal The signal to pass along to the master proxy to use to kill the slave.
   * @return {RemoteSlave} The current RemoteSlave instance.
   */
Kills the slave process by sending a singal to the master proxy server.
@param {String} signal The signal to pass along to the master proxy to use to kill the slave.
Kills the slave process by sending a singal to the master proxy server . @param { String } signal The signal to pass along to the master proxy to use to kill the slave .
kill(signal) {
    const onKill = () => {
      this[pseudo].slave[remoteslave].isConnected = false;
      Slave.cleanupSlaveReferences(this[pseudo].slave);
      this[pseudo].slave[remoteslave].socket.destroy();
      this[pseudo].slave.emit('remote killed', signal);
    };
    this[pseudo].slave.exec(Commands.REMOTE_KILL(signal), null, null) 
      .then(onKill)
      .catch(onKill);
    return this;
  }
kill ( signal ) { const onKill = ( ) => { this [ pseudo ] . slave [ remoteslave ] . isConnected = false ; Slave . cleanupSlaveReferences ( this [ pseudo ] . slave ) ; this [ pseudo ] . slave [ remoteslave ] . socket . destroy ( ) ; this [ pseudo ] . slave . emit ( 'remote killed' , signal ) ; } ; this [ pseudo ] . slave . exec ( Commands . REMOTE_KILL ( signal ) , null , null ) . then ( onKill ) . catch ( onKill ) ; return this ; }
Kills the slave process by sending a singal to the master proxy server.
Kills the slave process by sending a singal to the master proxy server .
/**
       * Emitted when the remote slave has been killed.
       * @event remote killed
       * @argument {String} signal The signal sent to the slave.
       */ // eslint-disable-line new-cap