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.
- Host: GitHub
- URL: https://github.com/krisleech/wisper-relay
- Owner: krisleech
- License: mit
- Created: 2015-02-16T22:45:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-16T22:46:16.000Z (over 11 years ago)
- Last Synced: 2025-03-17T04:44:47.507Z (about 1 year ago)
- Language: Ruby
- Size: 105 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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.