async close() { if (this.wsServer) { const close = util.promisify(this.wsServer.close.bind(this.wsServer)); await close(); } if (this.subscriptionsTimer) { clearInterval(this.subscriptionsTimer); } }
async close() { if (this.wsServer) { const close = util.promisify(this.wsServer.close.bind(this.wsServer)); await close(); } if (this.subscriptionsTimer) { clearInterval(this.subscriptionsTimer); } }