Skip to content

npezza93/solid_cable

Repository files navigation

SolidCable

Solid Cable is a DB-based backend for Action Cable.

Installation

Add this line to your application's Gemfile:

gem "solid_cable"

And then execute:

$ bundle

Or install it yourself as:

$ gem install solid_cable

Now, you need to install the necessary migrations and configure Action Cable's adapter.

$ bin/rails generate solid_cable:install

Update config/cable.yml to use the new adapter:

development:
  adapter: solid_cable
  silence_polling: true
  polling_interval: 1
  keep_messages_around_for: 30.minutes

test:
  adapter: test

production:
  adapter: solid_cable
  polling_interval: 0.1
  keep_messages_around_for: 10.minutes

Finally, you need to run the migrations:

$ bin/rails db:migrate

License

The gem is available as open source under the terms of the MIT License.

About

Add database backed ActionCable adapter

Resources

License

Stars

Watchers

Forks

Languages