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

Implements

  • DaemonOptions

Constructors

  • Parameters

    • Optional opts: Partial<DaemonOptions>

    Returns Options

Properties

daemonAddress: string
namespace: string
pollInterval: number
transport: Transport

Methods

  • client returns a client for the daemon.

    Returns DaemonClient

    the client for the daemon.

  • defaults returns the default options.

    Returns DaemonOptions

    the default options.

  • 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