mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-18 19:32:21 -06:00
Remove unused import and bad additional websocket event
This commit is contained in:
@@ -382,13 +382,6 @@ export class WAMonitoringService {
|
||||
private noConnection() {
|
||||
this.eventEmitter.on('no.connection', async (instanceName) => {
|
||||
try {
|
||||
await websocketController.emit({
|
||||
instanceName,
|
||||
origin: WAMonitoringService.name,
|
||||
event: 'no.connection',
|
||||
data: null,
|
||||
});
|
||||
|
||||
await this.waInstances[instanceName]?.client?.logout('Log out instance: ' + instanceName);
|
||||
|
||||
this.waInstances[instanceName]?.client?.ws?.close();
|
||||
|
||||
Reference in New Issue
Block a user