How to use the _listen function from bindings

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

137
138
139
140
141
142
143
144
145
146

listen(flag = 128){
  if(typeof flag !== 'number' || flag < 0){
    flag = 0;
  }
  const result = bindings._listen(this[_ID], flag);
  if(result >= 0){
    this.listenStatus = true;
  }else{
    this.listenStatus = false;
fork icon2
star icon2
watch icon2

+ 6 other calls in file

Other functions in bindings

Sorted by popularity

function icon

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