https://github.com/derhuerst/fasp-receiver
A receiver for the Friendly Audio Streaming Protocol.
https://github.com/derhuerst/fasp-receiver
audio fasp streaming
Last synced: 3 months ago
JSON representation
A receiver for the Friendly Audio Streaming Protocol.
- Host: GitHub
- URL: https://github.com/derhuerst/fasp-receiver
- Owner: derhuerst
- License: isc
- Created: 2018-04-06T22:39:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-17T22:17:11.000Z (over 6 years ago)
- Last Synced: 2025-01-07T19:11:38.983Z (over 1 year ago)
- Topics: audio, fasp, streaming
- Language: JavaScript
- Homepage: https://github.com/derhuerst/fasp-audio-receiver#fasp-audio-receiver
- Size: 27.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# fasp-receiver
**A receiver for the [Friendly Audio Streaming Protocol](https://github.com/derhuerst/friendly-audio-streaming-protocol).**
[](https://www.npmjs.com/package/fasp-receiver)

[](https://gitter.im/derhuerst)
[](https://patreon.com/derhuerst)
## Installing
```shell
npm install fasp-receiver
```
## Usage
```js
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](https://github.com/derhuerst/fasp-receiver/issues).