Skip to content

easy pub/sub messaging server using websocket.

License

sharkattack51/postman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postman

easy pub/sub messaging server using websocket.

Application Options:

  • -p, --port: listen port number (default: 8800)
  • -l, --log: output log location
  • -c, --chlist: safelist for channels
  • -i, --iplist: connectable ip_address list
  • -k, --store: enable key-value store api
  • -f, --file: enable file server api
  • -u, --plugin: enable plugin api
  • -s, --secure: enable secure mode
  • -g, --generate: genarate token from environment variable [SECRET]

Help Options:

  • -h, --help: Show this help message

Websocket API

  • Ping
    • <- "ping {}"
  • Status
    • <- "status {}"
  • Subscribe
    • <- "subscribe {"ch": "CHANNEL", ["ci": "CLIENT_INFO"]}"
  • Unsubscribe
    • <- "unsubscribe {"ch": "CHANNEL"}"
  • Publish
    • <- "publish {"ch": "CHANNEL", "msg": "MESSAGE", ["tag": "TAG", "ext": "OTHER"]}"

Http API

http://XXX.XXX.XXX.XXX:8800/postman

Client Library

Build Tags for Windows

$ go build -tags windows ./... others $ go build ./...

Using on PaaS

change code in main.go.

TARGET_PAAS = true

and deploy.

About

easy pub/sub messaging server using websocket.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •