MCPcopy
hub / github.com/PokemonGoF/PokemonGo-Bot / Duplex

Function Duplex

map-chat/javascript/browserMqtt.js:2695–2713  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

2693});
2694
2695function Duplex(options) {
2696 if (!(this instanceof Duplex))
2697 return new Duplex(options);
2698
2699 Readable.call(this, options);
2700 Writable.call(this, options);
2701
2702 if (options && options.readable === false)
2703 this.readable = false;
2704
2705 if (options && options.writable === false)
2706 this.writable = false;
2707
2708 this.allowHalfOpen = true;
2709 if (options && options.allowHalfOpen === false)
2710 this.allowHalfOpen = false;
2711
2712 this.once('end', onend);
2713}
2714
2715// the no-half-open enforcer
2716function onend() {

Callers

nothing calls this directly

Calls 1

callMethod · 0.80

Tested by

no test coverage detected