@the-/rtc
v15.7.3
Published
RTC server for the-frameworks
Readme
@the-/rtc
RTC server for the-frameworks
Installation
$ npm install @the-/rtc --saveUsage
'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
- module:@the-/rtc
- module:@the-/rtc.constants
- module:@the-/rtc.helpers
- module:@the-/rtc.mixins
- global
See API Guide for more detail
License
This software is released under the MIT License.
