Fix: Checkboxes de eventos en formulario de webhook
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m2s

This commit is contained in:
2025-12-02 20:39:16 -06:00
parent 738584514d
commit ae8e4e37a7
6 changed files with 214 additions and 5 deletions

View File

@@ -465,6 +465,18 @@ class BaileysManager extends EventEmitter {
return Array.from(this.instances.values())
}
/**
* Get the raw socket for an instance (for debug purposes)
* Returns null if instance is not connected
*/
getSocket(instanceId: string): WASocket | null {
const managed = this.instances.get(instanceId)
if (!managed || managed.status !== 'connected') {
return null
}
return managed.socket
}
/**
* Update instance status in database
*/