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 - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

.travis.yml

5

lib/index.js

@@ -53,2 +53,6 @@ /*!

* - `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.
*/

@@ -84,2 +88,3 @@

callback(null, {
server: server,
address: '127.0.0.1',

@@ -86,0 +91,0 @@ port: options.port

4

lib/middleware.js

@@ -6,2 +6,3 @@ /*!

var connect = require('connect'),
cordova = require('./middleware/cordova'),
mstatic = require('./middleware/static');

@@ -22,2 +23,5 @@

// serve cordova js if 404'd out from previous static server
app.use(cordova());
// return the request listener

@@ -24,0 +28,0 @@ return function(req, res, next) {

2

package.json
{
"name": "phonegap-soundwave",
"description": "Connect middleware to stream a PhoneGap app.",
"version": "0.2.0",
"version": "0.3.0",
"homepage": "https://github.com/phonegap/node-phonegap-soundwave",

@@ -6,0 +6,0 @@ "repository": {

@@ -1,2 +0,2 @@

# phonegap-soundwave
# phonegap-soundwave [![Build Status][travis-ci-img]][travis-ci-url]

@@ -37,1 +37,50 @@ > Connect middleware to stream a PhoneGap app.

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](http://nodejs.org/api/http.html#http_server_listen_path_callback)
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.
[travis-ci-img]: https://travis-ci.org/phonegap/node-phonegap-soundwave.png?branch=master
[travis-ci-url]: http://travis-ci.org/phonegap/node-phonegap-soundwave

Sorry, the diff of this file is not supported yet

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