Search
Preparing search index...
The search index is not available
@nestjs/microservices
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
ClientGrpcProxy
Class ClientGrpcProxy
Hierarchy
ClientProxy
ClientGrpcProxy
Implements
ClientGrpc
Index
Constructors
constructor
Properties
clients
deserializer
grpc
Clients
logger
options
routing
Map
serializer
url
Methods
assign
Packet
Id
close
connect
connect$
create
Client
ByService
Name
create
Clients
create
Observer
create
Service
Method
create
Stream
Service
Method
create
Unary
Service
Method
dispatch
Event
emit
get
Client
get
Client
ByService
Name
get
Keepalive
Options
get
Options
Prop
get
Service
initialize
Deserializer
initialize
Serializer
load
Proto
lookup
Package
normalize
Pattern
publish
send
Constructors
constructor
new
Client
Grpc
Proxy
(
options
:
GrpcOptions
[
"options"
]
)
:
ClientGrpcProxy
Parameters
options:
GrpcOptions
[
"options"
]
Returns
ClientGrpcProxy
Properties
Protected
Readonly
clients
clients
:
Map
<
string
,
any
>
= new Map<string, any>()
Protected
deserializer
deserializer
:
ProducerDeserializer
Protected
grpc
Clients
grpc
Clients
:
any
[]
= []
Protected
Readonly
logger
logger
:
Logger
= new Logger(ClientProxy.name)
Protected
Readonly
options
options
:
GrpcOptions
[
"options"
]
Protected
routing
Map
routing
Map
:
Map
<
string
,
Function
>
= new Map<string, Function>()
Protected
serializer
serializer
:
ProducerSerializer
Protected
Readonly
url
url
:
string
Methods
Protected
assign
Packet
Id
assign
Packet
Id
(
packet
:
ReadPacket
)
:
ReadPacket
&
PacketId
Parameters
packet:
ReadPacket
Returns
ReadPacket
&
PacketId
close
close
(
)
:
void
Returns
void
connect
connect
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
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
>
create
Client
ByService
Name
create
Client
ByService
Name
(
name
:
string
)
:
any
Parameters
name:
string
Returns
any
create
Clients
create
Clients
(
)
:
any
[]
Returns
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
create
Service
Method
create
Service
Method
(
client
:
any
, methodName
:
string
)
:
(
...
args
:
unknown
[]
)
=>
Observable
<
unknown
>
Parameters
client:
any
methodName:
string
Returns
(
...
args
:
unknown
[]
)
=>
Observable
<
unknown
>
(
...
args
:
unknown
[]
)
:
Observable
<
unknown
>
Parameters
Rest
...
args:
unknown
[]
Returns
Observable
<
unknown
>
create
Stream
Service
Method
create
Stream
Service
Method
(
client
:
unknown
, methodName
:
string
)
:
(
...
args
:
any
[]
)
=>
Observable
<
any
>
Parameters
client:
unknown
methodName:
string
Returns
(
...
args
:
any
[]
)
=>
Observable
<
any
>
(
...
args
:
any
[]
)
:
Observable
<
any
>
Parameters
Rest
...
args:
any
[]
Returns
Observable
<
any
>
create
Unary
Service
Method
create
Unary
Service
Method
(
client
:
any
, methodName
:
string
)
:
(
...
args
:
any
[]
)
=>
Observable
<
any
>
Parameters
client:
any
methodName:
string
Returns
(
...
args
:
any
[]
)
=>
Observable
<
any
>
(
...
args
:
any
[]
)
:
Observable
<
any
>
Parameters
Rest
...
args:
any
[]
Returns
Observable
<
any
>
Protected
dispatch
Event
dispatch
Event
(
packet
:
any
)
:
Promise
<
any
>
Parameters
packet:
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
Client
get
Client
(
name
:
string
)
:
any
Parameters
name:
string
Returns
any
get
Client
ByService
Name
get
Client
ByService
Name<T>
(
name
:
string
)
:
T
Type parameters
T =
unknown
Parameters
name:
string
Returns
T
get
Keepalive
Options
get
Keepalive
Options
(
)
:
{}
Returns
{}
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]
get
Service
get
Service<T>
(
name
:
string
)
:
T
Type parameters
T
:
{}
Parameters
name:
string
Returns
T
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
load
Proto
load
Proto
(
)
:
any
Returns
any
lookup
Package
lookup
Package
(
root
:
any
, packageName
:
string
)
:
any
Parameters
root:
any
packageName:
string
Returns
any
Protected
normalize
Pattern
normalize
Pattern
(
pattern
:
MsPattern
)
:
string
Parameters
pattern:
MsPattern
Returns
string
Protected
publish
publish
(
packet
:
any
, callback
:
(
packet
:
any
)
=>
any
)
:
any
Parameters
packet:
any
callback:
(
packet
:
any
)
=>
any
(
packet
:
any
)
:
any
Parameters
packet:
any
Returns
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
Client
Grpc
Proxy
constructor
clients
deserializer
grpc
Clients
logger
options
routing
Map
serializer
url
assign
Packet
Id
close
connect
connect$
create
Client
ByService
Name
create
Clients
create
Observer
create
Service
Method
create
Stream
Service
Method
create
Unary
Service
Method
dispatch
Event
emit
get
Client
get
Client
ByService
Name
get
Keepalive
Options
get
Options
Prop
get
Service
initialize
Deserializer
initialize
Serializer
load
Proto
lookup
Package
normalize
Pattern
publish
send
Generated using
TypeDoc