Search
Preparing search index...
The search index is not available
@nestjs/microservices
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
TestClientProxy
Class TestClientProxy
Hierarchy
ClientProxy
TestClientProxy
Index
Properties
deserializer
routing
Map
serializer
Methods
assign
Packet
Id
close
connect
connect$
create
Observer
dispatch
Event
emit
get
Options
Prop
initialize
Deserializer
initialize
Serializer
normalize
Pattern
publish
send
Properties
Protected
deserializer
deserializer
:
ProducerDeserializer
Protected
routing
Map
routing
Map
:
Map
<
string
,
Function
>
= new Map<string, Function>()
Protected
serializer
serializer
:
ProducerSerializer
Methods
Protected
assign
Packet
Id
assign
Packet
Id
(
packet
:
ReadPacket
)
:
ReadPacket
&
PacketId
Parameters
packet:
ReadPacket
Returns
ReadPacket
&
PacketId
close
close
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
connect
connect
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Protected
connect$
connect$
(
instance
:
any
, errorEvent
?:
string
, connectEvent
?:
string
)
:
Observable
<
any
>
Parameters
instance:
any
Default value
errorEvent:
string
= ERROR_EVENT
Default value
connectEvent:
string
= CONNECT_EVENT
Returns
Observable
<
any
>
Protected
create
Observer
create
Observer<T>
(
observer
:
Observer
<
T
>
)
:
(
packet
:
WritePacket
)
=>
void
Type parameters
T
Parameters
observer:
Observer
<
T
>
Returns
(
packet
:
WritePacket
)
=>
void
(
packet
:
WritePacket
)
:
void
Parameters
packet:
WritePacket
Returns
void
Protected
dispatch
Event
dispatch
Event<T>
(
packet
:
ReadPacket
<
any
>
)
:
Promise
<
any
>
Type parameters
T =
any
Parameters
packet:
ReadPacket
<
any
>
Returns
Promise
<
any
>
emit
emit<TResult, TInput>
(
pattern
:
any
, data
:
TInput
)
:
Observable
<
TResult
>
Type parameters
TResult =
any
TInput =
any
Parameters
pattern:
any
data:
TInput
Returns
Observable
<
TResult
>
Protected
get
Options
Prop
get
Options
Prop<T, K>
(
obj
:
T
, prop
:
K
, defaultValue
?:
T
[
K
]
)
:
T[K]
Type parameters
T
:
ClientOptions
[
"options"
]
K
:
keyof
T
Parameters
obj:
T
prop:
K
Default value
defaultValue:
T
[
K
]
= undefined
Returns
T[K]
Protected
initialize
Deserializer
initialize
Deserializer
(
options
:
ClientOptions
[
"options"
]
)
:
void
Parameters
options:
ClientOptions
[
"options"
]
Returns
void
Protected
initialize
Serializer
initialize
Serializer
(
options
:
ClientOptions
[
"options"
]
)
:
void
Parameters
options:
ClientOptions
[
"options"
]
Returns
void
Protected
normalize
Pattern
normalize
Pattern
(
pattern
:
MsPattern
)
:
string
Parameters
pattern:
MsPattern
Returns
string
publish
publish
(
pattern
:
any
, callback
:
any
)
:
any
Parameters
pattern:
any
callback:
any
Returns
any
send
send<TResult, TInput>
(
pattern
:
any
, data
:
TInput
)
:
Observable
<
TResult
>
Type parameters
TResult =
any
TInput =
any
Parameters
pattern:
any
data:
TInput
Returns
Observable
<
TResult
>
Globals
Test
Client
Proxy
deserializer
routing
Map
serializer
assign
Packet
Id
close
connect
connect$
create
Observer
dispatch
Event
emit
get
Options
Prop
initialize
Deserializer
initialize
Serializer
normalize
Pattern
publish
send
Generated using
TypeDoc