Preparing search index...
The search index is not available
DWN-SDK Documentation - v0.5.2
DWN-SDK Documentation
EventStream
Interface EventStream
The EventStream interface implements a pub/sub system based on Message filters.
interface
EventStream
{
close
(
)
:
Promise
<
void
>
;
emit
(
tenant
:
string
,
event
:
MessageEvent
,
indexes
:
KeyValues
)
:
void
;
open
(
)
:
Promise
<
void
>
;
subscribe
(
tenant
:
string
,
id
:
string
,
listener
:
EventListener
)
:
Promise
<
EventSubscription
>
;
}
Implemented by
EventEmitterStream
Index
Methods
close
emit
open
subscribe
Methods
close
close
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
emit
emit
(
tenant
,
event
,
indexes
)
:
void
Parameters
tenant
:
string
event
:
MessageEvent
indexes
:
KeyValues
Returns
void
open
open
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
subscribe
subscribe
(
tenant
,
id
,
listener
)
:
Promise
<
EventSubscription
>
Parameters
tenant
:
string
id
:
string
listener
:
EventListener
Returns
Promise
<
EventSubscription
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Methods
close
emit
open
subscribe
DWN-SDK Documentation - v0.5.2
Loading...
The EventStream interface implements a pub/sub system based on Message filters.