Home

Awesome

raop-server

A RAOP server.

Warning: This is very much work-in-progress :) For something more useful for now, check out either raop-rtsp-server or the more low level rtsp-server.

Build status js-standard-style

Installation

git clone https://github.com/watson/raop-server.git
cd raop-server
npm install

Example usage

var raop = require('raop-server')('My RAOP Server')

raop.on('request', function (c) {
  // do your stuff
})

raop.listen(7000) // start server on port 7000

API

Constructor

Get the constructor by requireing the raop-server node module and call it. It takes the optional arguments name, options and onRequest. Either of them can be left out, so calling with only options or only name and onRequest is ok:

require('raop-server')(name, options, onRequest)

Constructor arguments:

Server

The constructor returns a basic Node.js TCP server, so remember to call .listen() and optionally add a request event listener if one hasn't been provided as an argument to the constructor.

License

MIT