Skip to content

Telmate/actioncable_nats_adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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" } %>

About

Rails ActionCable NATS.io subscription adapter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors