Skip to content

Commit f30c9fe

Browse files
committed
updated version
1 parent 8c5e075 commit f30c9fe

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ var handler = function (data) {
6363
var run = function () {
6464
var client = new ws.WebhookRelayClient(apiKey, apiSecret, ['nodered'], handler)
6565
client.connect();
66+
67+
// do some work
68+
69+
// disconnect whenever connection is no longer needed
70+
setTimeout(function(){
71+
console.log('disconnecting')
72+
client.disconnect();
73+
}, 10000);
6674
}
6775

6876
run();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webhookrelay-ws-client",
3-
"version": "0.2.1",
3+
"version": "0.3.0",
44
"description": "Receive and process webhooks inside your applications without public endpoints or HTTP web server",
55
"main": "lib",
66
"types": "lib/index",

0 commit comments

Comments
 (0)