Addition optional configuration that can be passed to the dh.CoreClient constructor.

Hierarchy

  • ConnectOptions

Constructors

Properties

debug?: boolean

True to enable debug logging. At this time, only enables logging for gRPC calls.

headers?: {
    [key: string]: string;
}

Optional map of http header names and values to send to the server with each request.

Type declaration

  • [key: string]: string
transportFactory?: any

The transport factory to use for creating gRPC streams. If specified, the JS API will ignore dh.useWebsockets and its own internal logic for determining the appropriate transport to use.

Defaults to null, indicating that the JS API should determine the appropriate transport to use. If `useWebsockets` is set to true, the JS API will use websockets, otherwise if the server url begins with https, it will use fetch, otherwise it will use websockets.

useWebsockets?: boolean

Set this to true to force the use of websockets when connecting to the deephaven instance, false to force the use of fetch. Ignored if dh.transportFactory is set.

Defaults to null, indicating that the server URL should be checked to see if we connect with fetch or websockets.