It's a chat application powered by Event Machine and Websocket. In this application I used EM WebSocket on top of Event Machine so I can use high level API provided by the library.
- Clone the app
git clone [email protected]:ungsophy/rb-chat-app.git
- Then run
bundle install
- Start chart application
ruby src/chat-server.rb
- Start HTTP server to serve html page. The easiest way to start HTTP server is using Python SimpleHTTPServer.
python -m SimpleHTTPServer
- Open your browser and go to
http://localhost:8000
The chat application works on only browsers that support websocket.