Skip to content

xsandr/notifier

Repository files navigation

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

About

WebSocket notification from RabbitMQ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published