node-upnp-subscription
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -79,2 +79,3 @@ "use strict"; | ||
emitter.emit('error', e); | ||
emitter.emit('error:unsubscribe', e); | ||
}).end(); | ||
@@ -81,0 +82,0 @@ } else { |
@@ -9,3 +9,3 @@ { | ||
"description": "Upnp subscription library for Node, handling subscription, renewal and expiry.", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"main": "index.js", | ||
@@ -12,0 +12,0 @@ "directories": {}, |
@@ -31,5 +31,5 @@ Node UPNP Subscription Library | ||
On construction, a local HTTP server will begin to listen on a random port and a subscribe request will be made to the Upnp device advertising this address and a resubscribe timer is set. If the subscribe attempt fails, the resubscribe interval is not cancelled. When a response is received, the subscription Id `sid` is returned in an event. | ||
On construction, a local HTTP server will begin to listen on a random port and a subscribe request will be made to the Upnp device advertising this address and a resubscribe timer is set. The timeout value is replaced with the value returned in the subcription response which may differ to your requested resubscribe timeout. A resubscription timer is set to resubscribe after a successful subscription attempt. When a response is received, the subscription Id `sid` is returned in an event. | ||
The resubscribe timer will cause a subscribe attempt to be resent to keep the Upnp subscription alive. If this fails for any reason an event is emitted, but the resubscribe interval will not be cancelled. | ||
The resubscribe timer will cause a subscribe attempt to be resent to keep the Upnp subscription alive. If this is successful, a timer is set to resubscribe. | ||
@@ -46,2 +46,3 @@ ### Unsubscribe | ||
* `error` - Will return the error object which occured during subscribe attempt. | ||
* `error:subscribe` - Will return the error object which occured during subscribe attempt. | ||
@@ -52,2 +53,3 @@ ### Resubscribe | ||
* `error` - Will return both the `sid` of the subscription and the HTTP error object. | ||
* `error:resubscribe` - Will return both the `sid` of the subscription and the HTTP error object. | ||
@@ -58,1 +60,2 @@ ### Unsubscribe | ||
* `error` - Will return the HTTP error object. | ||
* `error:unsubscribe` - Will return the HTTP error object. |
19525
317
58