Search
Preparing search index...
The search index is not available
@nestjs/common
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Server
Class Server
Hierarchy
Server
ServerGrpc
ServerMqtt
ServerNats
ServerRedis
ServerTCP
ServerRMQ
TestServer
Index
Properties
logger
message
Handlers
Methods
add
Handler
get
Handler
ByPattern
get
Handlers
get
Options
Prop
handle
Error
handle
Event
load
Package
send
transform
ToObservable
Properties
Protected
logger
logger
:
any
= new Logger(Server.name)
Protected
message
Handlers
message
Handlers
:
any
= new Map<string, MessageHandler>()
Methods
add
Handler
add
Handler
(
pattern
:
any
, callback
:
MessageHandler
, isEventHandler
?:
boolean
)
:
void
Parameters
pattern:
any
callback:
MessageHandler
Default value
isEventHandler:
boolean
= false
Returns
void
get
Handler
ByPattern
get
Handler
ByPattern
(
pattern
:
string
)
:
MessageHandler
|
null
Parameters
pattern:
string
Returns
MessageHandler
|
null
get
Handlers
get
Handlers
(
)
:
Map
<
string
,
MessageHandler
>
Returns
Map
<
string
,
MessageHandler
>
get
Options
Prop
get
Options
Prop<T, K>
(
obj
:
T
, prop
:
K
, defaultValue
?:
T[K]
)
:
T[K]
Type parameters
T
:
any
K
:
keyof T
Parameters
obj:
T
prop:
K
Default value
defaultValue:
T[K]
= undefined
Returns
T[K]
Protected
handle
Error
handle
Error
(
error
:
string
)
:
void
Parameters
error:
string
Returns
void
handle
Event
handle
Event
(
pattern
:
string
, packet
:
ReadPacket
)
:
Promise
<
any
>
Parameters
pattern:
string
packet:
ReadPacket
Returns
Promise
<
any
>
Protected
load
Package
load
Package<T>
(
name
:
string
, ctx
:
string
, loader
?:
Function
)
:
T
Type parameters
T
Parameters
name:
string
ctx:
string
Optional
loader:
Function
Returns
T
send
send
(
stream$
:
Observable
<
any
>
, respond
:
function
)
:
Subscription
Parameters
stream$:
Observable
<
any
>
respond:
function
(
data
:
WritePacket
)
:
void
Parameters
data:
WritePacket
Returns
void
Returns
Subscription
transform
ToObservable
transform
ToObservable<T>
(
resultOrDeffered
:
any
)
:
Observable
<
T
>
Type parameters
T
Parameters
resultOrDeffered:
any
Returns
Observable
<
T
>
Globals
Server
logger
message
Handlers
add
Handler
get
Handler
ByPattern
get
Handlers
get
Options
Prop
handle
Error
handle
Event
load
Package
send
transform
ToObservable
Generated using
TypeDoc