cable-nats
cable-nats
This is a Cable.cr backend extension for jgaskins/nats.
Installation
- 
Add the dependency to your
shard.yml:dependencies: cable: github: cable-cr/cable cable-nats: github: cable-cr/cable-nats - 
Run
shards install 
Usage
require "cable"
require "cable-nats"
Cable.configure do |settings|
  settings.url = ENV.fetch("CABLE_BACKEND_URL", "nats://127.0.0.1:4222")
  settings.backend_class = Cable::NATSBackend
  # ... all other Cable config settings
end
Development
- Make the update
 - Add a spec and run 
crystal spec - Format it 
crystal tool format spec/ src/ - Ameba 
./bin/ameba - Commit it
 - GO TO 1
 
Contributing
- Fork it (https://github.com/cable-cr/cable-nats/fork)
 - Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
 
Contributors
- Jeremy Woertink - creator and maintainer
 
Repository
  cable-nats
Owner
  
  Statistic
  - 2
 - 1
 - 0
 - 0
 - 3
 - over 1 year ago
 - May 19, 2024
 
License
  MIT License
Links
  
  Synced at
  Tue, 04 Nov 2025 08:39:46 GMT
Languages