How to use the sendResponse function from bindings

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

49
50
51
52
53
54
55
56
57
   * @see {@link Response#template}
   */
  send(response) {
    let responseToReturn = new this._service._typeClass.Response(response);
    const rawResponse = responseToReturn.serialize();
    rclnodejs.sendResponse(this._service._handle, rawResponse, this._header);
    this.sent = true;
  }
}
fork icon65
star icon248
watch icon27

+ 11 other calls in file

49
50
51
52
53
54
55
56
57
   * @return {undefined}
   * @see {@link Response#template}
   */
  send(response) {
    const rawROSResponse = toROSMessage(this._service._typeClass.Response, response).serialize();
    rclnodejs.sendResponse(this._service._handle, rawROSResponse, this._header);
    this.sent = true;
  }
}
fork icon65
star icon0
watch icon2

+ 3 other calls in file

Other functions in bindings

Sorted by popularity

function icon

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