Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 16 hours ago
JSON representation

A receiver for the Friendly Audio Streaming Protocol.

Awesome Lists containing this project

README

        

# fasp-receiver

**A receiver for the [Friendly Audio Streaming Protocol](https://github.com/derhuerst/friendly-audio-streaming-protocol).**

[![npm version](https://img.shields.io/npm/v/fasp-receiver.svg)](https://www.npmjs.com/package/fasp-receiver)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/fasp-receiver.svg)
[![chat with me on Gitter](https://img.shields.io/badge/chat%20with%20me-on%20gitter-512e92.svg)](https://gitter.im/derhuerst)
[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](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).