disconnect(cb = noop) { this[storage].close(noop) this.transports[shutdown](() => { this.nats.publish('skyring:node', { node: this[kNode] , type: EVENT_STATUS.SHUTDOWN }, noop) this.nats.drainSubscription(this._sid, (err) => { if (err) return cb(err) this.nats.quit(cb) }) }) }
}, noop) this.nats.drainSubscription(this._sid, (err) => { if (err) return cb(err) this.nats.quit(cb)
disconnect(cb = noop) { this[storage].close(noop) this.transports[shutdown](() => { this.nats.publish('skyring:node', { node: this[kNode] , type: EVENT_STATUS.SHUTDOWN }, noop) this.nats.drainSubscription(this._sid, (err) => { if (err) return cb(err) this.nats.quit(cb) }) }) }
}, noop) this.nats.drainSubscription(this._sid, (err) => { if (err) return cb(err) this.nats.quit(cb)