code: function connect(port, host) {
      return new Promise((resolve, reject) => {
          let completed = ssocket_helpers.createSimplePromiseCompletedAction(resolve, reject);
          try {
              let client = new Net.Socket();
              client.connect(port, host, (err) => {
                  try {
                      if (err) {
                          completed(err);
                      }
                      else {
                          completed(null, createClient(client));
                      }
                  }
                  catch (e) {
                      completed(e);
                  }
              });
          }
          catch (e) {
              completed(e);
          }
      });
  }
docs: Connects to a remote (server).
  
  @param {number} port The TCP port of the remote machine.
  @param {string} host The host (address).
  
  @return {Promise<SimpleSocket>} The promise.