Fix: Checkboxes de eventos en formulario de webhook
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m2s
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m2s
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user