Experiments and demos with event machine, web_sockets and event-based JavaScript. Feel free to fork and improve on the examples.
-
Download this repo to a directory
-
From the directory:
bundle install
-
Install redis if you want to play with pub/sub
brew install redis
-
Start the server (ensure redis is running):
bundle exec ruby server.rb
-
View the client page in a browser localhost:4000
-
To publish commands to the redis channel, do something like:
redis-cli > publish 'chat' 'This is a test message from redis command line client'