Interface: ClientOptions
Extends
BaseClientOptions
Properties
connection?
optionalconnection?:ConnectionLike
Connection to use to communicate with the server.
By default, connects to localhost.
Connections are expensive to construct and should be reused.
Inherited from
BaseClientOptions.connection
dataConverter?
optionaldataConverter?:DataConverter
DataConverter to use for serializing and deserializing payloads
Inherited from
BaseClientOptions.dataConverter
identity?
optionalidentity?:string
Identity to report to the server
Default
${process.pid}@${os.hostname()}
Inherited from
BaseClientOptions.identity
interceptors?
optionalinterceptors?:ClientInterceptors
Used to override and extend default Connection functionality
Useful for injecting auth headers and tracing Workflow executions
namespace?
optionalnamespace?:string
Server namespace
Default
default
Inherited from
BaseClientOptions.namespace
payloadCache?
optionalpayloadCache?:false|PayloadCache
Experimental
Payload cache shared by this client, or false to disable payload caching.
Default
false
Inherited from
BaseClientOptions.payloadCache
plugins?
optionalplugins?:ClientPlugin[]
Experimental
List of plugins to register with the client.
Plugins allow you to extend and customize the behavior of Temporal clients. They can intercept and modify client creation.
Plugins is an experimental feature; APIs may change without notice.
workflow?
optionalworkflow?:object
queryRejectCondition?
optionalqueryRejectCondition?:QueryRejectCondition
Should a query be rejected by closed and failed workflows
Default
undefined, which means that closed and failed workflows are still queryable