Loom Engine - v3.1.1
GitHub
TheWorldTable.ai
Preparing search index...
EventBus
Class EventBus
Index
Constructors
constructor
Methods
subscribe
once
publish
off
clear
topics
handler
Count
stats
Constructors
constructor
new
EventBus
()
:
EventBus
Returns
EventBus
Methods
subscribe
subscribe
<
T
=
unknown
>
(
topic
:
string
,
handler
:
EventHandler
<
T
>
)
:
()
=>
void
Type Parameters
T
=
unknown
Parameters
topic
:
string
handler
:
EventHandler
<
T
>
Returns
()
=>
void
once
once
<
T
=
unknown
>
(
topic
:
string
,
handler
:
EventHandler
<
T
>
)
:
()
=>
void
Type Parameters
T
=
unknown
Parameters
topic
:
string
handler
:
EventHandler
<
T
>
Returns
()
=>
void
publish
publish
<
T
=
unknown
>
(
topic
:
string
,
data
?:
T
)
:
void
Type Parameters
T
=
unknown
Parameters
topic
:
string
Optional
data
:
T
Returns
void
off
off
(
topic
:
string
)
:
void
Parameters
topic
:
string
Returns
void
clear
clear
()
:
void
Returns
void
topics
topics
()
:
string
[]
Returns
string
[]
handler
Count
handlerCount
(
topic
:
string
)
:
number
Parameters
topic
:
string
Returns
number
stats
stats
()
:
{
publishCount
:
number
;
deliveredCount
:
number
;
topicCount
:
number
}
Returns
{
publishCount
:
number
;
deliveredCount
:
number
;
topicCount
:
number
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
subscribe
once
publish
off
clear
topics
handler
Count
stats
GitHub
TheWorldTable.ai
Loom Engine - v3.1.1
Loading...