Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

phonegap-soundwave

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phonegap-soundwave

Connect middleware to stream a PhoneGap app.

  • 0.3.0
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

phonegap-soundwave Build Status

Connect middleware to stream a PhoneGap app.

Examples

Standalone

var soundwave = require('phonegap-soundwave');
soundwave.listen(3000);

Express

var soundwave = require('phonegap-soundwave'),
    express = require('express'),
    app = express();

app.use(soundwave());
app.listen(3000);

Connect

var soundwave = require('phonegap-soundwave'),
    connect = require('connect'),
    app = connect();

app.use(soundwave());
app.listen(3000);

HTTP

var soundwave = require('phonegap-soundwave'),
    http = require('http');

var server = http.createServer(soundwave());
server.listen(3000);

API

var soundwave = require('phonegap-soundwave');

soundwave()

Returns a http.Server request listener that is also a compatible connect middleware function.

Returns:

  • {Function} request listener

soundwave.listen(port, [options])

Create an http.Server and listen on the specified port. All arguments are passed directly into http.listen(...).

See http.listen for details.

Returns:

  • {Object} that is an http.Server instance.

soundwave.serve(options, [callback])

Convenience method to soundwave.listen(...) that supports PhoneGap CLI events.

Options:

  • options
    • port {Number} to listen on (Default: 3000).
  • callback {Function}
    • e {Error} is null unless there is an error.
      • data {Object}
        • server {http.Server} is the server running.
        • address {String} is the server address.
        • port {Number} is the server port.

Events:

  • error is emitted when an error occurs.
  • log is emitted with server log info.

Keywords

FAQs

Package last updated on 13 Jan 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc