Skip to content

Commit

Permalink
Adds heroku support and updates example
Browse files Browse the repository at this point in the history
  • Loading branch information
nlocnila committed Mar 28, 2016
1 parent f6fc349 commit 622d84f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: node ./bin.js listen -p $PORT
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
5 changes: 5 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 622d84f

Please sign in to comment.