NorskSettings interface

Top level Norsk configuration

Signature:

export interface NorskSettings

Properties

Property Type Description

onAttemptingToConnect?

() ⇒ void

(Optional) Called when attempting a connection to the Norsk Manager

onConnecting?

() ⇒ void

(Optional) Called when a connection to the Norsk Manager is being established

onFailedToConnect?

() ⇒ void

(Optional) Called when a connection to the Norsk Manager has failed

onHello?

(version: VersionInfo) ⇒ void

(Optional) Called when receiving the version information from the Norsk Manager

onLogEvent?

(log: Log) ⇒ void

(Optional) Called whenever a log event is received from the Norsk Manager

onReady?

() ⇒ void

(Optional) Called when a connection to the Norsk Manager is ready

onShutdown?

() ⇒ void

(Optional) Called when Norsk Manager is shutting down the connection

signal?

AbortSignal

(Optional) Abort the connection. Aborting tears down the gRPC channel and its watchers, cancels any open streams, and rejects a pending connect() — so a caller that gives up (e.g. a connect-with-timeout retry loop) does not leave an abandoned instance watching the channel and firing late when the Manager eventually comes up.

url?

string

(Optional) Callback URL to listen on for gRPC session with Norsk Manager