How to use the validateFullTopicName function from bindings

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

34
35
36
37
38
39
40
41
42
43
validateFullTopicName(topic) {
  if (typeof topic !== 'string') {
    throw new TypeError('Invalid argument');
  }

  let result = rclnodejs.validateFullTopicName(topic);
  if (result === null) {
    return true;
  }
  throw this._createErrorFromValidation(result);
fork icon65
star icon254
watch icon27

Other functions in bindings

Sorted by popularity

function icon

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