Preparing search index...
The search index is not available
Deepkit
Deepkit
broker
BrokerChannel
Class BrokerChannel<T>
Type Parameters
T
Hierarchy
BrokerChannel
Index
Constructors
constructor
Properties
callbacks
channel
client
decoder
listener
type
wrapped
Methods
next
publish
subscribe
Constructors
constructor
new
Broker
Channel
<
T
>
(
channel
:
string
, type
:
Type
, client
:
BrokerClient
)
:
BrokerChannel
<
T
>
Type Parameters
T
Parameters
channel:
string
type:
Type
client:
BrokerClient
Returns
BrokerChannel
<
T
>
Properties
Protected
callbacks
callbacks
:
(
(
next
:
Uint8Array
)
=>
void
)
[]
= []
channel
channel
:
string
Protected
client
client
:
BrokerClient
Protected
decoder
decoder
:
(
(
bson
:
Uint8Array
)
=>
any
)
Type declaration
(
bson
:
Uint8Array
)
:
any
Parameters
bson:
Uint8Array
Returns
any
Protected
listener
listener
:
number
= 0
Protected
type
type
:
Type
Protected
wrapped
wrapped
:
boolean
= false
Methods
next
next
(
data
:
Uint8Array
)
:
void
Parameters
data:
Uint8Array
Returns
void
publish
publish
(
data
:
T
)
:
Promise
<
undefined
>
Parameters
data:
T
Returns
Promise
<
undefined
>
subscribe
subscribe
(
callback
:
(
(
next
:
T
)
=>
void
)
)
:
Promise
<
AsyncSubscription
>
Parameters
callback:
(
(
next
:
T
)
=>
void
)
(
next
:
T
)
:
void
Parameters
next:
T
Returns
void
Returns
Promise
<
AsyncSubscription
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Modules
Deepkit
angular-
universal
api-
console-
api
api-
console-
module
app
broker
bson
core
core-
rxjs
create-
app
crypto
event
framework
framework-
debug-
api
http
injector
logger
mongo
mysql
orm
orm-
browser-
api
orm-
integration
postgres
rpc
rpc-
tcp
skeleton
sql
sqlite
stopwatch
template
type
type-
compiler
workflow
Broker
Channel
constructor
callbacks
channel
client
decoder
listener
type
wrapped
next
publish
subscribe
Generated using
TypeDoc