in lib/api.js [162:168]
disconnect(ws) { if (!ws || this.ws === ws) { this.ws && this.ws.close(); this.ws = null; return true; } }