The Basics

You can initiate a client with the following code:

import { Client } from 'peerly'

const client = new Client({
    serverList: ['https://link-to-signaling-server']
})

client.connect('UNIQUE-ID');

You can get a sample signaling server by using the getServerList method, it will use a server hosted by me. You should host your own server for production apps.

Last updated