Web SDK - RainwayConfig.onRuntimeConnectionLost

Home > rainway-sdk > RainwayConfig > onRuntimeConnectionLost

RainwayConfig.onRuntimeConnectionLost property

This function is called when connection to the Rainway Network is lost.

All peer connections should be considered invalidated and must be re-established. The Rainway Network connection itself will be automatically re-established on the next call to RainwayRuntime.connect.


onRuntimeConnectionLost?: (runtime: RainwayRuntime, error: RainwayError) => void;