This package has been deprecated

Author message:

move to @the-/rtc ( https://github.com/the-labo/the/tree/master/packages/rtc#readme )

the-rtc

3.0.10 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Published

Version History

VersionDownloads (Last 7 Days)Published

Package Sidebar

Install

npm i the-rtc

Weekly Downloads

4

Version

3.0.10

License

MIT

Unpacked Size

548 kB

Total Files

120

Last publish

Collaborators

  • okunishinishi