@japofc/baileys - v2.4.7
GitHub
npm
Preparing search index...
SessionHealthMonitor
Interface SessionHealthMonitor
interface
SessionHealthMonitor
{
bind
(
sock
:
any
,
bindOpts
?:
{
sweepMs
?:
number
}
)
:
()
=>
void
;
getStats
()
:
SessionHealthStats
;
getStatus
(
jid
:
string
)
:
SessionHealthStatus
;
getUnhealthy
()
:
{
failures
:
number
;
jid
:
string
;
lastFailureAt
:
number
;
total
:
number
;
}
[]
;
isHealthy
(
jid
:
string
)
:
boolean
;
onError
(
cb
:
(
err
:
unknown
)
=>
void
)
:
()
=>
void
;
onRecover
(
cb
:
(
e
:
SessionHealthEvent
)
=>
void
)
:
()
=>
void
;
onUnhealthy
(
cb
:
(
e
:
SessionHealthEvent
)
=>
void
)
:
()
=>
void
;
record
(
jid
:
string
)
:
void
;
reset
(
jid
?:
string
)
:
void
;
sweep
()
:
void
;
unbind
()
:
void
;
}
Index
Methods
bind
get
Stats
get
Status
get
Unhealthy
is
Healthy
on
Error
on
Recover
on
Unhealthy
record
reset
sweep
unbind
Methods
bind
bind
(
sock
:
any
,
bindOpts
?:
{
sweepMs
?:
number
}
)
:
()
=>
void
Parameters
sock
:
any
Optional
bindOpts
:
{
sweepMs
?:
number
}
Returns
()
=>
void
get
Stats
getStats
()
:
SessionHealthStats
Returns
SessionHealthStats
get
Status
getStatus
(
jid
:
string
)
:
SessionHealthStatus
Parameters
jid
:
string
Returns
SessionHealthStatus
get
Unhealthy
getUnhealthy
()
:
{
failures
:
number
;
jid
:
string
;
lastFailureAt
:
number
;
total
:
number
;
}
[]
Returns
{
failures
:
number
;
jid
:
string
;
lastFailureAt
:
number
;
total
:
number
}
[]
is
Healthy
isHealthy
(
jid
:
string
)
:
boolean
Parameters
jid
:
string
Returns
boolean
on
Error
onError
(
cb
:
(
err
:
unknown
)
=>
void
)
:
()
=>
void
Parameters
cb
:
(
err
:
unknown
)
=>
void
Returns
()
=>
void
on
Recover
onRecover
(
cb
:
(
e
:
SessionHealthEvent
)
=>
void
)
:
()
=>
void
Parameters
cb
:
(
e
:
SessionHealthEvent
)
=>
void
Returns
()
=>
void
on
Unhealthy
onUnhealthy
(
cb
:
(
e
:
SessionHealthEvent
)
=>
void
)
:
()
=>
void
Parameters
cb
:
(
e
:
SessionHealthEvent
)
=>
void
Returns
()
=>
void
record
record
(
jid
:
string
)
:
void
Parameters
jid
:
string
Returns
void
reset
reset
(
jid
?:
string
)
:
void
Parameters
Optional
jid
:
string
Returns
void
sweep
sweep
()
:
void
Returns
void
unbind
unbind
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Methods
bind
get
Stats
get
Status
get
Unhealthy
is
Healthy
on
Error
on
Recover
on
Unhealthy
record
reset
sweep
unbind
GitHub
npm
@japofc/baileys - v2.4.7
Loading...