Comparing version 1.2.0 to 1.2.1
104
Aria2.js
@@ -25,4 +25,5 @@ ;(function (global) { | ||
for (var i in Aria2.options) | ||
for (var i in Aria2.options) { | ||
this[i] = typeof opts === 'object' && i in opts ? opts[i] : Aria2.options[i] | ||
} | ||
} | ||
@@ -48,3 +49,3 @@ | ||
// browser, use jsonp | ||
if (typeof module !== 'undefined' && module.exports) { | ||
if (!(typeof module !== 'undefined' && module.exports)) { | ||
opts.jsonp = 'jsoncallback' | ||
@@ -58,3 +59,3 @@ } | ||
var msg = opts.jsonp ? res.body : JSON.parse(res.body.toString()) | ||
var msg = opts.jsonp ? res.body : JSON.parse(res.toString()) | ||
that._onmessage(msg) | ||
@@ -169,89 +170,91 @@ }) | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#methods | ||
// https://aria2.github.io/manual/en/html/aria2c.html#methods | ||
Aria2.methods = [ | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.addUri | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.addUri | ||
'addUri', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.addTorrent | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.addTorrent | ||
'addTorrent', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.addMetalink | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.addMetalink | ||
'addMetalink', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.remove | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.remove | ||
'remove', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.forceRemove | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.forceRemove | ||
'forceRemove', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.pause | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.pause | ||
'pause', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.pauseAll | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.pauseAll | ||
'pauseAll', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.forcePause | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.forcePause | ||
'forcePause', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.forcePauseAll | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.forcePauseAll | ||
'forcePauseAll', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.unpause | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.unpause | ||
'unpause', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.unpauseAll | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.unpauseAll | ||
'unpauseAll', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.tellStatus | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.tellStatus | ||
'tellStatus', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getUris | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.getUris | ||
'getUris', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getFiles | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.getFiles | ||
'getFiles', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getPeers | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.getPeers | ||
'getPeers', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getServers | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.getServers | ||
'getServers', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.tellActive | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.tellActive | ||
'tellActive', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.tellWaiting | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.tellWaiting | ||
'tellWaiting', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.tellStopped | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.tellStopped | ||
'tellStopped', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.changePosition | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.changePosition | ||
'changePosition', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.changeUri | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.changeUri | ||
'changeUri', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getOption | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.getOption | ||
'getOption', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.changeOption | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.changeOption | ||
'changeOption', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getGlobalOption | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.getGlobalOption | ||
'getGlobalOption', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.changeGlobalOption | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.changeGlobalOption | ||
'changeGlobalOption', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getGlobalStat | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.getGlobalStat | ||
'getGlobalStat', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.purgeDownloadResult | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.purgeDownloadResult | ||
'purgeDownloadResult', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.removeDownloadResult | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.removeDownloadResult | ||
'removeDownloadResult', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getVersion | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.getVersion | ||
'getVersion', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getSessionInfo | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.getSessionInfo | ||
'getSessionInfo', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.shutdown | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.shutdown | ||
'shutdown', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.forceShutdown | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.forceShutdown | ||
'forceShutdown', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.saveSession | ||
'saveSession' | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#system.multicall | ||
// 'system.multicall', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#system.listMethods | ||
// 'system.listMethods', | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.saveSession | ||
'saveSession', | ||
// https://aria2.github.io/manual/en/html/aria2c.html#system.multicall | ||
'system.multicall', | ||
// https://aria2.github.io/manual/en/html/aria2c.html#system.listMethods | ||
'system.listMethods', | ||
// https://aria2.github.io/manual/en/html/aria2c.html#system.listNotifications | ||
'system.listNotifications' | ||
] | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#notifications | ||
// https://aria2.github.io/manual/en/html/aria2c.html#notifications | ||
Aria2.notifications = [ | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.onDownloadStart | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.onDownloadStart | ||
'onDownloadStart', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.onDownloadPause | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.onDownloadPause | ||
'onDownloadPause', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.onDownloadStop | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.onDownloadStop | ||
'onDownloadStop', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.onDownloadComplete | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.onDownloadComplete | ||
'onDownloadComplete', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.onDownloadError | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.onDownloadError | ||
'onDownloadError', | ||
// http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.onBtDownloadComplete | ||
// https://aria2.github.io/manual/en/html/aria2c.html#aria2.onBtDownloadComplete | ||
'onBtDownloadComplete' | ||
@@ -276,3 +279,4 @@ ] | ||
Aria2.methods.forEach(function (method) { | ||
Aria2.prototype[method] = function (/* [param] [,param] [,...]*/) { | ||
var sufix = method.indexOf('.') > -1 ? method.split('.')[1] : method | ||
Aria2.prototype[sufix] = function (/* [param] [,param] [,...]*/) { | ||
this.send.apply(this, [method].concat(Array.prototype.slice.call(arguments))) | ||
@@ -279,0 +283,0 @@ } |
aria2rpc | ||
======== | ||
Use and control [aria2](aria2.sourceforge.net) RPC from the command line. | ||
Use and control [aria2](https://aria2.github.io) RPC from the command line. | ||
@@ -14,3 +14,3 @@ ## Install | ||
Check `aria2rpc -h` and http://aria2.sourceforge.net/manual/en/html/aria2c.html#methods for more information. | ||
Check `aria2rpc -h` and https://aria2.github.io/manual/en/html/aria2c.html#methods for more information. | ||
@@ -17,0 +17,0 @@ ## call |
{ | ||
"name": "aria2", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Library and cli for aria2, \"The next generation download utility.\"", | ||
@@ -36,3 +36,3 @@ "homepage": "https://github.com/sonnyp/aria2.js", | ||
"httpclient": "0.0.4", | ||
"ws": "^0.8.1" | ||
"ws": "^1.0.1" | ||
}, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
106
README.md
aria2.js | ||
======== | ||
JavaScript (Node.js and browsers) library and [cli](https://github.com/sonnyp/aria2.js/blob/master/bin/README.md) for [aria2, "The next generation download utility."](http://aria2.sourceforge.net/) | ||
JavaScript (Node.js and browsers) library and [cli](https://github.com/sonnyp/aria2.js/blob/master/bin/README.md) for [aria2, "The next generation download utility."](https://aria2.github.io/) | ||
@@ -12,3 +12,3 @@ [![Build Status](https://img.shields.io/travis/sonnyp/aria2.js/master.svg?style=flat-square)](https://travis-ci.org/sonnyp/aria2.js/branches) | ||
aria2.js controls aria2 via its [JSON-RPC interface](http://aria2.sourceforge.net/manual/en/html/aria2c.html#rpc-interface) and supports WebSocket, HTTP and JSONP transports. | ||
aria2.js controls aria2 via its [JSON-RPC interface](https://aria2.github.io/manual/en/html/aria2c.html#rpc-interface) and supports WebSocket, HTTP and JSONP transports. | ||
@@ -21,44 +21,44 @@ - [Getting started](#getting-started) | ||
- [aria2 methods](#aria2-methods) | ||
- [addUri](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.addUri) | ||
- [addTorrent](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.addTorrent) | ||
- [addMetaLink](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.addMetalink) | ||
- [remove](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.remove) | ||
- [forceRemove](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.forceRemove) | ||
- [pause](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.pause) | ||
- [pauseAll](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.pauseAll) | ||
- [forcePause](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.forcePause) | ||
- [forcePauseAll](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.forcePauseAll) | ||
- [unpause](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.unpause) | ||
- [unpauseAll](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.unpauseAll) | ||
- [tellStatus](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.tellStatus) | ||
- [getUris](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getUris) | ||
- [getFiles](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getFiles) | ||
- [getPeers](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getPeers) | ||
- [getServers](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getServers) | ||
- [tellActive](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.tellActive) | ||
- [tellWaiting](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.tellWaiting) | ||
- [tellStopped](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.tellStopped) | ||
- [changePosition](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.changePosition) | ||
- [changeUri](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.changeUri) | ||
- [getOption](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getOption) | ||
- [changeOption](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.changeOption) | ||
- [getGlobalOption](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getGlobalOption) | ||
- [changeGlobalOption](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.changeGlobalOption) | ||
- [getGlobalStat](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getGlobalStat) | ||
- [purgeDownloadResult](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.purgeDownloadResult) | ||
- [removeDownloadResult](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.removeDownloadResult) | ||
- [getVersion](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getVersion) | ||
- [getSessionInfo](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.getSessionInfo) | ||
- [shutdown](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.shutdown) | ||
- [forceShutdown](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.forceShutdown) | ||
- [saveSession](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.saveSession) | ||
- [system.multicall](http://aria2.sourceforge.net/manual/en/html/aria2c.html#system.multicall) | ||
- [system.listMethods](http://aria2.sourceforge.net/manual/en/html/aria2c.html#system.listMethods) | ||
- [addUri](https://aria2.github.io/manual/en/html/aria2c.html#aria2.addUri) | ||
- [addTorrent](https://aria2.github.io/manual/en/html/aria2c.html#aria2.addTorrent) | ||
- [addMetaLink](https://aria2.github.io/manual/en/html/aria2c.html#aria2.addMetalink) | ||
- [remove](https://aria2.github.io/manual/en/html/aria2c.html#aria2.remove) | ||
- [forceRemove](https://aria2.github.io/manual/en/html/aria2c.html#aria2.forceRemove) | ||
- [pause](https://aria2.github.io/manual/en/html/aria2c.html#aria2.pause) | ||
- [pauseAll](https://aria2.github.io/manual/en/html/aria2c.html#aria2.pauseAll) | ||
- [forcePause](https://aria2.github.io/manual/en/html/aria2c.html#aria2.forcePause) | ||
- [forcePauseAll](https://aria2.github.io/manual/en/html/aria2c.html#aria2.forcePauseAll) | ||
- [unpause](https://aria2.github.io/manual/en/html/aria2c.html#aria2.unpause) | ||
- [unpauseAll](https://aria2.github.io/manual/en/html/aria2c.html#aria2.unpauseAll) | ||
- [tellStatus](https://aria2.github.io/manual/en/html/aria2c.html#aria2.tellStatus) | ||
- [getUris](https://aria2.github.io/manual/en/html/aria2c.html#aria2.getUris) | ||
- [getFiles](https://aria2.github.io/manual/en/html/aria2c.html#aria2.getFiles) | ||
- [getPeers](https://aria2.github.io/manual/en/html/aria2c.html#aria2.getPeers) | ||
- [getServers](https://aria2.github.io/manual/en/html/aria2c.html#aria2.getServers) | ||
- [tellActive](https://aria2.github.io/manual/en/html/aria2c.html#aria2.tellActive) | ||
- [tellWaiting](https://aria2.github.io/manual/en/html/aria2c.html#aria2.tellWaiting) | ||
- [tellStopped](https://aria2.github.io/manual/en/html/aria2c.html#aria2.tellStopped) | ||
- [changePosition](https://aria2.github.io/manual/en/html/aria2c.html#aria2.changePosition) | ||
- [changeUri](https://aria2.github.io/manual/en/html/aria2c.html#aria2.changeUri) | ||
- [getOption](https://aria2.github.io/manual/en/html/aria2c.html#aria2.getOption) | ||
- [changeOption](https://aria2.github.io/manual/en/html/aria2c.html#aria2.changeOption) | ||
- [getGlobalOption](https://aria2.github.io/manual/en/html/aria2c.html#aria2.getGlobalOption) | ||
- [changeGlobalOption](https://aria2.github.io/manual/en/html/aria2c.html#aria2.changeGlobalOption) | ||
- [getGlobalStat](https://aria2.github.io/manual/en/html/aria2c.html#aria2.getGlobalStat) | ||
- [purgeDownloadResult](https://aria2.github.io/manual/en/html/aria2c.html#aria2.purgeDownloadResult) | ||
- [removeDownloadResult](https://aria2.github.io/manual/en/html/aria2c.html#aria2.removeDownloadResult) | ||
- [getVersion](https://aria2.github.io/manual/en/html/aria2c.html#aria2.getVersion) | ||
- [getSessionInfo](https://aria2.github.io/manual/en/html/aria2c.html#aria2.getSessionInfo) | ||
- [shutdown](https://aria2.github.io/manual/en/html/aria2c.html#aria2.shutdown) | ||
- [forceShutdown](https://aria2.github.io/manual/en/html/aria2c.html#aria2.forceShutdown) | ||
- [saveSession](https://aria2.github.io/manual/en/html/aria2c.html#aria2.saveSession) | ||
- [system.multicall](https://aria2.github.io/manual/en/html/aria2c.html#system.multicall) | ||
- [system.listMethods](https://aria2.github.io/manual/en/html/aria2c.html#system.listMethods) | ||
- [aria2 events](#aria2-events) | ||
- [onDownloadStart](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.onDownloadStart) | ||
- [onDownloadPause](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.onDownloadPause) | ||
- [onDownloadStop](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.onDownloadStop) | ||
- [onDownloadComplete](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.onDownloadComplete) | ||
- [onDownloadError](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.onDownloadError) | ||
- [onBtDownloadComplete](http://aria2.sourceforge.net/manual/en/html/aria2c.html#aria2.onBtDownloadComplete) | ||
- [onDownloadStart](https://aria2.github.io/manual/en/html/aria2c.html#aria2.onDownloadStart) | ||
- [onDownloadPause](https://aria2.github.io/manual/en/html/aria2c.html#aria2.onDownloadPause) | ||
- [onDownloadStop](https://aria2.github.io/manual/en/html/aria2c.html#aria2.onDownloadStop) | ||
- [onDownloadComplete](https://aria2.github.io/manual/en/html/aria2c.html#aria2.onDownloadComplete) | ||
- [onDownloadError](https://aria2.github.io/manual/en/html/aria2c.html#aria2.onDownloadError) | ||
- [onBtDownloadComplete](https://aria2.github.io/manual/en/html/aria2c.html#aria2.onBtDownloadComplete) | ||
- [Example](#example) | ||
@@ -72,3 +72,3 @@ - [Contributing](#contributing) | ||
```npm install aria2``` | ||
`npm install aria2` | ||
@@ -94,3 +94,3 @@ ---- | ||
```aria2c --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all``` | ||
`aria2c --enable-rpc --rpc-listen-all=true --rpc-allow-origin-all` | ||
@@ -117,3 +117,3 @@ [↑](#aria2js) | ||
Secret is optional and refers to [--rpc-secret](http://aria2.sourceforge.net/manual/en/html/aria2c.html#cmdoption--rpc-secret). | ||
Secret is optional and refers to [--rpc-secret](https://aria2.github.io/manual/en/html/aria2c.html#cmdoption--rpc-secret). | ||
@@ -124,3 +124,3 @@ [↑](#aria2js) | ||
```aria2.open()``` opens the WebSocket connection. | ||
`aria2.open()` opens the WebSocket connection. | ||
@@ -138,3 +138,3 @@ ```javascript | ||
```aria2.close()``` closes the WebSocket connection. | ||
`aria2.close()` closes the WebSocket connection. | ||
@@ -152,4 +152,4 @@ ```javascript | ||
```aria2.onsend()``` is called everytime a message is being sent | ||
```aria2.onmessage()``` is called everytime a message has been received. | ||
`aria2.onsend()` is called for every message sent. | ||
`aria2.onmessage()` is called for every message received. | ||
@@ -168,3 +168,3 @@ ```javascript | ||
## aria2 methods | ||
For a complete listing see [aria2 methods](http://aria2.sourceforge.net/manual/en/html/aria2c.html#methods). | ||
For a complete listing see [aria2 methods](https://aria2.github.io/manual/en/html/aria2c.html#methods). | ||
@@ -194,3 +194,3 @@ Note that if you have passed the secret option to aria2.js, it will be automatically added it to every request so there is no need to include it. | ||
## aria2 events | ||
For a complete listing see [aria2 notifications](http://aria2.sourceforge.net/manual/en/html/aria2c.html#json-rpc-over-websocket). | ||
For a complete listing see [aria2 notifications](https://aria2.github.io/manual/en/html/aria2c.html#json-rpc-over-websocket). | ||
@@ -216,3 +216,3 @@ For every notifications you can bind a function. | ||
``` | ||
npm install (-g) mocha standard | ||
npm install mocha standard | ||
npm test | ||
@@ -219,0 +219,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
389
34560
+ Addedws@1.1.5(transitive)
- Removedbindings@1.2.1(transitive)
- Removedbufferutil@1.2.1(transitive)
- Removednan@2.22.02.4.0(transitive)
- Removedutf-8-validate@1.2.2(transitive)
- Removedws@0.8.1(transitive)
Updatedws@^1.0.1