This is a simple Sinatra application using Faye to communicate with an Angular.js client
PubSub server with two entities:
PubSub server Faye with a Redis server as backend.
Sample backend server using a Sinatra app to show how messages can be received and sent from the server side.
Javascript sample based on AngularJS and Faye's client side library
- Clone the repository.
- Install the following gems:
- sinatra
- faye
- faye-redis (from git not rubygems)
- thin
- json
bundle install
Run the Faye server on port 9001:
rackup faye.ru -s thin -E production -p 9001
Run the Sinatra server on IP 0.0.0.0:
rackup config.ru -s thin -o 0.0.0.0