Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
assets
views
Gemfile
Procfile
README.md
anycable
app.rb
chat.rb
config.ru

README.md

Lite Cable Sinatra Demo

Sample chat application built with Sinatra and Lite Cable.

Usage

Install dependencies:

bundle install

Run server:

bundle exec puma

Open your browser at localhost:9292, enter your name and a chat room ID (anything you want).

Then open another session (another browser, incognito window) and repeat all steps using the same room ID.

Now you can chat with yourself!

AnyCable usage

This example also can be used with AnyCable.

You need anycable-go installed.

Just run Procfile with your favourite tool (hivemind or Foreman):

hivemind