Simple tool to monitor a PubNub channel for testing purposes.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.sass-cache/f764cfbee51e6701f39cb5d2d68ab519790874f5
public
views
.gitignore
Gemfile
Gemfile.lock
README.md
config-sample.yml
config.ru
monitor.rb

README.md

PubNub Monitor

This is a simple Sinatra app made to help make testing a PubNub-enabled app easier. I wanted to be able to very simply monitor the happenings of a given channel and send a simple test message occasionally, so I threw this together.

Usage

Once you've cloned the repository, you need to create a config file with your publish and subscribe keys in it. You'll need to create an account with PubNub first to get them if you don't already.

mv config-sample.yml config.yml

Then edit the file accordingly. Once that's done, simply start the server and go!

ruby -rubygems monitor.rb

And the monitor is available at localhost:4567/CHANNEL_NAME. A channel name is required for it to do anything, so if you don't include the channel name in the url it's going to be pretty boring. Enjoy!