Web SDK - RainwayRuntime.initialize()

Home > rainway-sdk > RainwayRuntime > initialize

RainwayRuntime.initialize() method

Initialize a instance of the Rainway runtime and connect it to the Rainway servers.

This should only be called once, and the resulting object is used to manage multiple connections.

Signature:

static initialize(config: RainwayConfig): Promise<RainwayRuntime>;

Parameters

ParameterTypeDescription
configRainwayConfigOptions for the Rainway SDK.

Returns:

Promise<RainwayRuntime>

  • An instance of RainwayRuntime, ready to use.