Starts the relay in the current JS context.
import { Relay, Events } from "@chainpatrol/sdk"; Relay.run([Events.ContinueAtOwnRisk]);
The run() method accepts one parameter which is an array of events to forward:
run()
The events property specifies what events to forward to other listeners of the relay.
events
Was this page helpful?