Norsk.connect() method

Connect to a Norsk engine. Every connect() to the same url in one process shares ONE engine connection (gRPC channel, status channel, subscription channel): the first call opens it, later calls attach to it and get their own callbacks, and it closes with the last . The engine’s status fan-out is per status channel, so an application that connects more than once no longer costs the engine more than one that connects once — the intent was always a single connect per process.

Signature:

static connect(settings?: NorskSettings): Promise<Norsk>;

Parameters

Parameter Type Description

settings

NorskSettings

(Optional)

Returns:

Promise<Norsk>