RTC server for the-frameworks


Keywords
the, rtc
License
MIT
Install
npm install the-rtc@3.0.10

Documentation

the-rtc

Build Status npm Version JS Standard

RTC server for the-frameworks

Installation

$ npm install the-rtc --save

Usage

'use strict'

const { TheRTC } = require('the-rtc')

async function tryExample() {
  const rtc = new TheRTC({
    stun: {
      url: 'stun:stun.l.google.com:19302'
    },
    turn: {
      url: 'turn:your.turn.servers.here',
      secret: 'xxxxxxxxxxxxxxxx',
      expiry: 86400
    },
    topology: 'mesh',
  })

  const port = 3000
  await rtc.listen(port)
  console.log(`Example RTC Server listening: http://localhost:${port}`)
}

tryExample().catch((err) => console.error(err))

API Guide

License

This software is released under the MIT License.

Links