Interface: TemporalConnectionOptions
Defined in: node_modules/@temporalio/client/lib/connection.d.ts:11
gRPC and Temporal Server connection options
Properties
address?
optionaladdress?:string
Defined in: node_modules/@temporalio/client/lib/connection.d.ts:19
The address of the Temporal server to connect to, in hostname:port format.
Port defaults to 7233. Raw IPv6 addresses must be wrapped in square brackets (e.g. [ipv6]:port).
Default
localhost:7233
apiKey?
optionalapiKey?:string| (() =>string)
Defined in: node_modules/@temporalio/client/lib/connection.d.ts:100
API key for Temporal. This becomes the "Authorization" HTTP header with "Bearer " prepended.
This is mutually exclusive with the Authorization header in ConnectionOptions.metadata.
You may provide a static string or a callback. Also see Connection.withApiKey or Connection.setApiKey
callCredentials?
optionalcallCredentials?:CallCredentials[]
Defined in: node_modules/@temporalio/client/lib/connection.d.ts:58
gRPC call credentials.
CallCredentials generaly modify metadata; they can be attached to a connection to affect all method
calls made using that connection. They can be created using some of the factory methods defined
here
If callCredentials are specified, they will be composed with channel credentials
(either the one created implicitely by using the tls option, or the one specified
explicitly through credentials). Notice that gRPC doesn't allow registering
callCredentials on insecure connections.
channelArgs?
optionalchannelArgs?:ChannelOptions
Defined in: node_modules/@temporalio/client/lib/connection.d.ts:74
GRPC Channel arguments
See
option descriptions here
By default the SDK sets the following keepalive arguments:
grpc.keepalive_permit_without_calls: 1
grpc.keepalive_time_ms: 30_000
grpc.keepalive_timeout_ms: 15_000
To opt-out of keepalive, override these keys with undefined.
connectTimeout?
optionalconnectTimeout?:Duration
Defined in: node_modules/@temporalio/client/lib/connection.d.ts:110
Milliseconds to wait until establishing a connection with the server.
Used either when connecting eagerly with Connection.connect or calling Connection.ensureConnected.
Format
number of milliseconds or ms-formatted string
Default
10 seconds