The project is in a healthy, maintained state
Use nats.io as the pub/sub backend for ActionCable
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

ActioncableNatsAdapter

Use this as a subscription adapter in Rails 6+ with NATs.

Installation

Add to your Gemfile:

bundle add actioncable_nats_adapter

TODO: publish action_cable_nats to rubygems.org

Usage

Set the config/cable.yaml adapter to nats.

Example:

development:
  adapter: nats
  url: "nats://127.0.0.1:4222"

test:
  adapter: test

production:
  adapter: nats
  channel_prefix: natscable_production
  url: <%= ENV.fetch("NATS_URL") { "nats://127.0.0.1:4222" } %>