Skip to content

cable-cr/cable-nats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cable-nats

This is a Cable.cr backend extension for jgaskins/nats.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      cable:
        github: cable-cr/cable
      cable-nats:
        github: cable-cr/cable-nats
  2. 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

  1. Make the update
  2. Add a spec and run crystal spec
  3. Format it crystal tool format spec/ src/
  4. Ameba ./bin/ameba
  5. Commit it
  6. GO TO 1

Contributing

  1. Fork it (https://github.com/cable-cr/cable-nats/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

A Cable.cr backend for NATS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published