MCPcopy Create free account
hub / github.com/SocketCluster/socketcluster / kill

Method kill

app/public/socketcluster-client.js:8665–8677  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

8663 }
8664
8665 kill(value) {
8666 if (this._timeoutId !== undefined) {
8667 clearTimeout(this._timeoutId);
8668 delete this._timeoutId;
8669 }
8670 this._killPacket = {value, done: true};
8671 this._destroy();
8672
8673 if (this._resolve) {
8674 this._resolve();
8675 delete this._resolve;
8676 }
8677 }
8678
8679 _destroy() {
8680 this.isAlive = false;

Callers 3

killAllMethod · 0.45
killConsumerMethod · 0.45

Calls 1

_destroyMethod · 0.95

Tested by

no test coverage detected