Skip to main content

Interface: NexusClientOptions

client.NexusClientOptions

Hierarchy​

  • BaseClientOptions

    ↳ NexusClientOptions

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​

BaseClientOptions.connection


dataConverter​

• Optional dataConverter: DataConverter

DataConverter to use for serializing and deserializing payloads

Inherited from​

BaseClientOptions.dataConverter


identity​

• Optional identity: string

Identity to report to the server

Default

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

Inherited from​

BaseClientOptions.identity


interceptors​

• Optional interceptors: NexusClientInterceptor[]

Used to override and extend default client behavior.


namespace​

• Optional namespace: string

Server namespace

Default

default

Inherited from​

BaseClientOptions.namespace