Options are the options for using Webmesh. They are a superset of DaemonOptions and can be used to inherit the daemon address and namespace from the environment. It should be extended to provide the transport needed to communicate with the daemon.

Hierarchy

  • Options

Implements

Constructors

Properties

daemonAddress: string

daemonAddress is the address of the daemon.

namespace: string

namespace is the namespace to use for the daemon.

pollInterval: number

pollInterval is the interval in milliseconds to poll the daemon for updates.

transport: Transport

transport is the transport to use for communicating with the daemon.

Methods

  • interceptor returns an interceptor that sets the namespace header on RPC requests.

    Parameters

    • namespace: string

    Returns Interceptor

    the interceptor for the daemon.

Generated using TypeDoc