Skip to content

nickpresta/gonotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gonotify

Gonotify is a proof of concept notification server.

Powered by Gophers

How to run

  1. Get gonotify: go get github.com/nickpresta/gonotify
  2. Build gonotify: go build github.com/nickpresta/gonotify

You should now have a binary, gonotify. See gonotify --help for available options.

How to interact

Gonotify is an HTTP and WebSocket server. It accepts messages via HTTP and relays them to clients connected via WebSocket.

Clients

  • Browse to http://localhost:8080/mailbox/your-mailbox-name - e.g. http://localhost:8080/mailbox/nickp
  • Wait

To send data

  • Send a POST request to http://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.

About

Gonotify is an HTTP/WebSocket notification server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages