15.7.3 • Published 5 years ago

@the-/rtc v15.7.3

Weekly downloads
58
License
MIT
Repository
github
Last release
5 years ago

@the-/rtc

npm Version

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',
    },
    topology: 'mesh',
    turn: {
      expiry: 86400 * 1000,
      secret: 'xxxxxxxxxxxxxxxx',
      url: 'turn:your.turn.servers.here',
    },
  })

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

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

API Guide

See API Guide for more detail

License

This software is released under the MIT License.

Links

15.7.3

5 years ago

15.7.2

5 years ago

15.7.1

5 years ago

15.7.0

5 years ago

15.6.9

5 years ago

15.6.10

5 years ago

15.6.8

5 years ago

15.6.6

5 years ago

15.6.5

5 years ago

15.6.4

6 years ago

15.6.2

6 years ago

15.6.1

6 years ago

15.6.0

6 years ago

15.5.2

6 years ago

15.5.3

6 years ago

15.5.1

6 years ago

15.4.16

6 years ago

15.4.15

6 years ago

15.4.14

6 years ago

15.4.12

6 years ago

15.4.11

6 years ago

15.4.10

6 years ago

15.4.9

6 years ago

15.4.4

6 years ago

15.4.1

6 years ago

15.4.0

6 years ago

15.2.4

6 years ago