fasp-receiver

2.1.1 • Public • Published

fasp-receiver

A receiver for the Friendly Audio Streaming Protocol.

npm version ISC-licensed chat with me on Gitter support me on Patreon

Installing

npm install fasp-receiver

Usage

const createReceiver = require('fasp-receiver')
 
const receiver = createReceiver({
    version: 2
}, (err, info) => {
    if (err) console.error(err)
    else console.info(info.name, 'listening on port', info.port)
})
 
receiver.on('command', (cmd, args) => {
    console.log('command', cmd, args)
})
receiver.send('foo', ['bar', 'baz'])

Contributing

If you have a question or have difficulties using fasp-receiver, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.

Package Sidebar

Install

npm i fasp-receiver

Weekly Downloads

3

Version

2.1.1

License

ISC

Unpacked Size

7.02 kB

Total Files

6

Last publish

Collaborators

  • derhuerst