From 622d84f96852e1194f94c163a6892ce6b7631bb1 Mon Sep 17 00:00:00 2001 From: nlocnila Date: Mon, 28 Mar 2016 15:56:00 -0700 Subject: [PATCH] Adds heroku support and updates example --- Procfile | 1 + README.md | 7 +++++-- app.json | 5 +++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 Procfile create mode 100644 app.json diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..d365d52 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: node ./bin.js listen -p $PORT diff --git a/README.md b/README.md index d54a21d..4f9fd91 100644 --- a/README.md +++ b/README.md @@ -22,12 +22,12 @@ var hub = signalhub('my-app-name', [ 'http://yourhub.com' ]) -hub.subscribe('/my-channel') +hub.subscribe('my-channel') .on('data', function (message) { console.log('new message received', message) }) -hub.broadcast('/my-channel', {hello: 'world'}) +hub.broadcast('my-channel', {hello: 'world'}) ``` ## API @@ -79,6 +79,9 @@ signalhub subscribe my-app my-channel -p 8080 -h yourhub.com This also works in the browser using browserify :) +## Heroku +[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy + ## License MIT diff --git a/app.json b/app.json new file mode 100644 index 0000000..cdfefe2 --- /dev/null +++ b/app.json @@ -0,0 +1,5 @@ +{ + "name": "signalhub", + "description": "Simple signalling server that can be used to coordinate handshaking with webrtc or other fun stuff.", + "repository": "https://github.com/mafintosh/signalhub" +}