Node.js SDK - Runtime.initialize()

Home > rainway-sdk-native > Runtime > initialize

Runtime.initialize() method

Initializes rainway with the config and waits for it to connect to instant relay.

Signature:

static initialize(cfg: Readonly<RuntimeConfig>): Promise<Runtime>;

Parameters

ParameterTypeDescription
cfgReadonly<RuntimeConfig>

Returns:

Promise<Runtime>