Search
Preparing search index...
The search index is not available
dotup-ts-typebus
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
PublisherSubscriber
Class PublisherSubscriber
Hierarchy
PublisherSubscriber
Implements
IBus
Index
Constructors
constructor
Properties
logger
message
Counter
subject
Bus
Methods
as
Observable
publish
publish
Async
subscribe
subscribe
Async
topic
Matches
Constructors
constructor
new
Publisher
Subscriber
(
)
:
PublisherSubscriber
Returns
PublisherSubscriber
Properties
Private
logger
logger
:
ILogger
message
Counter
message
Counter
:
number
= 0
Private
subject
Bus
subject
Bus
:
Subject
<
any
>
Methods
as
Observable
as
Observable<T>
(
topic
:
object
|
string
)
:
Observable
<
T
>
Type parameters
T
Parameters
topic:
object
|
string
Returns
Observable
<
T
>
publish
publish<T>
(
message
:
T
, topic
?:
string
)
:
void
Type parameters
T
Parameters
message:
T
Optional
topic:
string
Returns
void
publish
Async
publish
Async<T>
(
message
:
T
, topic
?:
string
)
:
Promise
<
void
>
Type parameters
T
Parameters
message:
T
Optional
topic:
string
Returns
Promise
<
void
>
subscribe
subscribe<T>
(
topic
:
object
|
string
, handler
:
function
)
:
Subscription
Type parameters
T
Parameters
topic:
object
|
string
handler:
function
(
data
:
T
)
:
void
Parameters
data:
T
Returns
void
Returns
Subscription
subscribe
Async
subscribe
Async<T>
(
topic
:
object
|
string
, handler
:
function
)
:
Subscription
Type parameters
T
Parameters
topic:
object
|
string
handler:
function
(
data
:
T
)
:
Promise
<
void
>
Parameters
data:
T
Returns
Promise
<
void
>
Returns
Subscription
topic
Matches
topic
Matches
(
value
:
string
, topic
:
string
)
:
boolean
Parameters
value:
string
topic:
string
Returns
boolean
Globals
Message1
Message2
Publisher
Subscriber
constructor
logger
message
Counter
subject
Bus
as
Observable
publish
publish
Async
subscribe
subscribe
Async
topic
Matches
Startup
Topic
Message
Type
Bus
IBus
IKey
Message
startup
Generated using
TypeDoc