All Projects → anycable → Anycable Rails

anycable / Anycable Rails

Licence: mit
AnyCable Rails integration

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Anycable Rails

Dropzonejs Rails
Spice your Rails apps with some Dropzone sugar!
Stars: ✭ 299 (-11.54%)
Mutual labels:  rails
Ansible Rails
Ansible: Ruby on Rails Server
Stars: ✭ 317 (-6.21%)
Mutual labels:  rails
Navigasmic
Navigasmic: Semantic navigation for Rails using simple view level or configuration definitions.
Stars: ✭ 327 (-3.25%)
Mutual labels:  rails
Enumerate it
Enumerations for Ruby with some magic powers! 🎩
Stars: ✭ 300 (-11.24%)
Mutual labels:  rails
Housepricing
HousePricing旨在提供房价的可视化预测,帮助用户更好的评估房产和预测未来的价格(dev)
Stars: ✭ 314 (-7.1%)
Mutual labels:  rails
Milia
Easy multi-tenanting for Rails5 (or Rails4) + Devise
Stars: ✭ 326 (-3.55%)
Mutual labels:  rails
Lifelong Learning
✅ ✅ ✅ A massive repo filled with notes on everything from coding to philosophy to psychology to marketing to product
Stars: ✭ 297 (-12.13%)
Mutual labels:  rails
Clearance
Rails authentication with email & password.
Stars: ✭ 3,467 (+925.74%)
Mutual labels:  rails
Codervault
An Open Source, Self-Hosted, Snippet Manager
Stars: ✭ 315 (-6.8%)
Mutual labels:  rails
Envied
Ensures presence and type of your app's ENV-variables (mirror)
Stars: ✭ 327 (-3.25%)
Mutual labels:  rails
Html5 validators
A gem/plugin for Rails 3, Rails 4, Rails 5, and Rails 6 that enables client-side validation using ActiveModel + HTML5 Form Validation
Stars: ✭ 302 (-10.65%)
Mutual labels:  rails
Maktoub
A simple newsletter engine for Rails
Stars: ✭ 308 (-8.88%)
Mutual labels:  rails
Racecar
Racecar: a simple framework for Kafka consumers in Ruby
Stars: ✭ 327 (-3.25%)
Mutual labels:  rails
Plylst
Smart playlists for Spotify! Stop relying on fancy pants algorithms to organize your library and instead build playlists the way you want.
Stars: ✭ 301 (-10.95%)
Mutual labels:  rails
Log analyzer
Rails logs analyzer (see how fast your views are rendering)
Stars: ✭ 333 (-1.48%)
Mutual labels:  rails
Paul revere
A library for "one off" announcements in Rails apps.
Stars: ✭ 299 (-11.54%)
Mutual labels:  rails
Six
Ultra lite authorization library
Stars: ✭ 323 (-4.44%)
Mutual labels:  rails
Lamby
Simple Rails & AWS Lambda Integration 🐑🛤
Stars: ✭ 336 (-0.59%)
Mutual labels:  rails
Homeland
🎪 An open source forum/community system based on Rails, developed based on Ruby China.
Stars: ✭ 3,511 (+938.76%)
Mutual labels:  rails
Ahoy
Simple, powerful, first-party analytics for Rails
Stars: ✭ 3,478 (+928.99%)
Mutual labels:  rails

Gem Version Build Gitter Documentation

AnyCable Rails

AnyCable allows you to use any WebSocket server (written in any language) as a replacement for built-in Rails Action Cable server.

With AnyCable you can use channels, client-side JS, broadcasting - (almost) all that you can do with Action Cable.

You can even use Action Cable in development and not be afraid of compatibility issues.

Important This is a readme for the upcoming v1.0 release. For v0.6.x see the readme from the 0-6-stable branch.

💾 Example Application

📑 Documentation.

Sponsored by Evil Martians

Requirements

  • Ruby >= 2.5
  • Rails >= 5.2
  • Redis (see other options for broadcasting)

Usage

Add anycable-rails gem to your Gemfile:

gem "anycable-rails"

# when using Redis broadcast adapter
gem "redis", ">= 4.0"

Interactive set up

After the gem was installed, you can run an interactive wizard to configure your Rails application for using with AnyCable by running a generator:

bundle exec rails g anycable:setup

Manual set up

Specify AnyCable subscription adapter for Action Cable:

# config/cable.yml
development:
  adapter: any_cable # or anycable

production:
  adapter: any_cable

and specify AnyCable WebSocket server URL:

# For development it's likely the localhost

# config/environments/development.rb
config.action_cable.url = "ws://localhost:3334/cable"

# For production it's likely to have a sub-domain and secure connection

# config/environments/production.rb
config.action_cable.url = "wss://ws.example.com/cable"

Then, run AnyCable RPC server:

$ bundle exec anycable

# don't forget to provide Rails env

$ RAILS_ENV=production bundle exec anycable

And, finally, run AnyCable WebSocket server, e.g. anycable-go:

anycable-go --host=localhost --port=3334

See documentation for more information on AnyCable + Rails usage.

Action Cable Compatibility

See documentation.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/anycable/anycable-rails.

License

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

Security Contact

To report a security vulnerability, please contact us at [email protected]. We will coordinate the fix and disclosure.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].