Skip to content
Example implementation of the websocket-rails gem
Find file
Pull request Compare This branch is 7 commits ahead, 1 commit behind whitehat101:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
test
vendor
.DS_Store
.gitignore
.rvmrc
Gemfile
Gemfile.lock
Procfile
README.md
Rakefile
config.ru
websocket_chat_dev

README.md

WebSocket-Rails Example Application

This is an example implementation of the websocket-rails gem.

Event Routing

Check out app/config/initializers/events.rb for the example event routing.

Controller Implementation

Check out app/controllers/chat_controller.rb for the example websocket controller.

Installation/Usage

  1. Clone the git repo
  2. Run the bundle command inside the directory
  3. Fire up the web server on port 3000 thin-socketrails -p 3000 start
  4. Browse to http://localhost:3000 in a browser that supports WebSockets

You must start the app on port 3000 or the javascript client will not be able to connect

Something went wrong with that request. Please try again.