notifier

command module
v0.0.0-...-4866d92 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2015 License: MIT Imports: 13 Imported by: 0

README

Notifier

Simple WebSocket notifications through RabbitMQ

Usage

Run notifier:

go run main.go consumer.go registry.go connection.go message.go --addr=:5000

Go to notification page and enter your ID

Send notification through RabbitMQ, for example:

pip install universalbus

and then

from universalbus import EventSender
sender = EventSender('guest', 'guest', 'localhost', '/', exchange='notifications')
sender.push_text('user.15', 'notification example', ttl=15*60)  # instead 15, enter your ID

Offline notifications

For offline users, notifications will be moved into personal queue, and delivered after user log in.

For disable offline notifications:

go run *.go --ttl=0

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL