Gonotify is a proof of concept notification server.
- Get gonotify:
go get github.com/nickpresta/gonotify
- Build gonotify:
go build github.com/nickpresta/gonotify
You should now have a binary, gonotify
. See gonotify --help
for available options.
Gonotify is an HTTP and WebSocket server. It accepts messages via HTTP and relays them to clients connected via WebSocket.
- Browse to
http://localhost:8080/mailbox/your-mailbox-name
- e.g.http://localhost:8080/mailbox/nickp
- Wait
-
Send a
POST
request tohttp://localhost:8080/send
with a JSON payload looking like:{ "mailbox": "nickp", "message": "hello!" }
-
The mailbox should receive the message and show up on the client's screen.