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 installInstall redis if you want to play with pub/sub
brew install redisStart the servers:
/usr/local/bin/redis-server & ./server.rbView 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'