Example

import { Relay, Events } from "@chainpatrol/sdk";

Relay.run([Events.ContinueAtOwnRisk]);

Parameters

The run() method accepts one parameter which is an array of events to forward:

events
EventType[]
required

The events property specifies what events to forward to other listeners of the relay.