postman

module
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: MIT

README

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.

Directories

Path Synopsis
cmd
postman command

Jump to

Keyboard shortcuts

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