The JavaScript SDK v2 is easy to use and only takes a few minutes to set up and get running.
You can either import it from a CDN or install it with npm.


If you want to use the CDN, import the script in your html:

<script src="[email protected]^1"></script>

Then, you can use the global Relay variable in your application.


If you want to install the library locally, use npm:

npm i @signalwire/[email protected]^1

Then, import Relay into your application:

import { Relay } from '@signalwire/js'

Did this page help you?