Skip to main content

Interface: ActivityClientOptions

Options used to configure ActivityClient

Extends​

Properties​

connection?​

optional connection?: 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​

AsyncCompletionClientOptions.connection


dataConverter?​

optional dataConverter?: DataConverter

DataConverter to use for serializing and deserializing payloads

Inherited from​

AsyncCompletionClientOptions.dataConverter


identity?​

optional identity?: string

Identity to report to the server

Default​

${process.pid}@${os.hostname()}

Inherited from​

AsyncCompletionClientOptions.identity


interceptors?​

optional interceptors?: ActivityClientInterceptor[]


namespace?​

optional namespace?: string

Server namespace

Default​

default

Inherited from​

AsyncCompletionClientOptions.namespace


payloadCache?​

optional payloadCache?: false | PayloadCache

Experimental

Payload cache shared by this client, or false to disable payload caching.

Default​

false

Inherited from​

AsyncCompletionClientOptions.payloadCache