The example assumes that there is a running Whisper v6 node.
example for this, use geth
with the following parameters to exposing an RPC interface at URL http://localhost:8545:
$ geth <usual p2p flags> --shh --rpc
--shh
is the option that enables Whisper v6 for the node.
--rpc
enables the HTTP RPC interface.
download your version from here
pchat
requires Go 1.10.2 or later, dep to managing dependency package and xgo for cross compile.
$ go get -u github.com/m-abdalrahman/pchat
pchat -username "user"
mandatory argument:
-username set your username
optional arguments:
-url set RPC URL for running Whisper v6 node default "http://localhost:8545"
-privatekey set your private key