module
Version:
v1.3.6
Opens a new window with list of versions in this module.
Published: Jul 4, 2025
License: MIT
Opens a new window with license information.
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
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
Status
Publish
Store
File
Plugin
Client Library
$ go build -tags windows ./... others $ go build ./...
Using on PaaS
change code in main.go.
TARGET_PAAS = true
and deploy.
Directories
¶
cmd
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.