Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 676 Bytes

README.md

File metadata and controls

26 lines (15 loc) · 676 Bytes

Web Sockets playground

Experiments and demos with event machine, web_sockets and event-based JavaScript. Feel free to fork and improve on the examples.

Setup

  1. Download this repo to a directory

  2. From the directory:

     bundle install
    
  3. Install redis if you want to play with pub/sub

     brew install redis
    
  4. Start the server (ensure redis is running):

     bundle exec ruby server.rb
    
  5. View the client page in a browser localhost:4000

  6. To publish commands to the redis channel, do something like:

     redis-cli
     > publish 'chat' 'This is a test message from redis command line client'