An open API service indexing awesome lists of open source software.

https://github.com/krisleech/wisper-relay

Relay wisper events to the outside world, for example a message queue.
https://github.com/krisleech/wisper-relay

Last synced: about 1 year ago
JSON representation

Relay wisper events to the outside world, for example a message queue.

Awesome Lists containing this project

README

          

# Wisper::Relay [WIP]

Relay wisper events to the outside world, for example to a Message Queue.

## Installation

```ruby
gem 'wisper-relay'
```

## Usage

```ruby
class MyRelay
include Wisper::Relay

def on_event(event, args)
# ...
end
end

Wisper.subscribe(MyRelay.new)
```

Since an instance of `MyRelay` has been globally subscribed `on_event` will
get invoked for every event broadcast.

## Contributing

Yes, please.