Skip to main content

Interface: NativeConnectionOptions

worker.NativeConnectionOptions

Properties

address

Optional address: string

The host and optional port of the Temporal server to connect to. Port defaults to 7233 if address contains only host.

default localhost:7233


headers

Optional headers: Record<string, string>

HTTP headers to send with each gRPC request.

Set statically at connection time, can be replaced later using NativeConnection.setHeaders.


identity

Optional identity: string

A human-readable string that can identify your worker

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


tls

Optional tls: null | boolean | TLSConfig

TLS configuration options.

Pass a falsy value to use a non-encrypted connection or true or {} to connect with TLS without any customization.


workerBinaryId

Optional workerBinaryId: string

A string that should be unique to the exact worker code/binary being executed

default @temporalio/worker package name and version