> ## Documentation Index
> Fetch the complete documentation index at: https://chainpatrol.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# run()

> Starts the relay in the current JS context.

## Example

```js theme={null}
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:

<ParamField body="events" type="EventType[]" required>
  The `events` property specifies what events to forward to other listeners of
  the relay.
</ParamField>
