How to use the sendRequest function from bindings

Find comprehensive JavaScript bindings.sendRequest code examples handpicked from public code repositorys.

55
56
57
58
59
60
61
62
63
  if (typeof callback !== 'function') {
    throw new TypeError('Invalid argument');
  }

  let rawRequest = requestToSend.serialize();
  let sequenceNumber = rclnodejs.sendRequest(this._handle, rawRequest);
  debug(`Client has sent a ${this._serviceName} request.`);
  this._sequenceNumberToCallbackMap.set(sequenceNumber, callback);
}
fork icon65
star icon248
watch icon27

+ 5 other calls in file

53
54
55
56
57
58
59
60
61
  if (typeof (callback) !== 'function') {
    throw new TypeError('Invalid argument');
  }

  let rawRequest = requestToSend.serialize();
  this._sequenceNumber = rclnodejs.sendRequest(this._handle, rawRequest);
  debug(`Client has sent a ${this._serviceName} request.`);
  this._callback = callback;
}
fork icon65
star icon1
watch icon5

87
88
89
90
91
92
93
94
95
  if (typeof (callback) !== 'function') {
    throw new TypeError('Invalid argument');
  }

  let rawROSRequest = rclRequest.serialize();
  this._sequenceNumber = rclnodejs.sendRequest(this._handle, rawROSRequest);
  debug(`Client has sent a ${this._serviceName} request.`);
  this._callback = callback;
}
fork icon65
star icon0
watch icon2

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)