voryx / thruway-cli
Thruway (WAMP) 的 CLI
0.0.2
2016-11-07 01:53 UTC
Requires
- php: ~7.0
- clue/arguments: ^1.0
- clue/commander: ^1.0
- clue/readline-react: dev-master
- reactivex/rxphp: dev-master
- rx/operator-extras: dev-master as 0.1.0
- rx/stream: dev-master
- rx/thruway-client: dev-master
- voryx/event-loop: ^0.2.0
This package is auto-updated.
Last update: 2024-08-27 04:01:43 UTC
README
Thruway CLI 是一个命令行工具,允许您执行 WAMP 命令进行测试。
安装
从最新版本 发布 下载 thruway-cli.phar。
$ chmod 755 thruway-cli.phar $ sudo mv thruway-cli.phar /usr/local/bin/thruway-cli
示例
$ thruway-cli wss://demo.crossbar.io/ws realm1
命令
exit [<code>] help publish <uri> <value> [<options>] call <uri> [<args>] [<options>] subscribe <uri> [<options>] cancel register <uri> [<options>]
订阅
thruway> subscribe demo.topic thruway> subscribe demo. '{ "match": "prefix" }'
发布
thruway> publish demo.topic 'Hello World' thruway> publish demo.topic 'Hello World' '{"exclude_me":false}'
调用
thruway> call demo.rpc 123 thruway> call demo.rpc "Hello World" thruway> call demo.rpc '["Hello", "World"]' thruway> call demo.rpc '["Hello", "World"]' '{"receive_progress": true}'
注册
thruway> register demo.rpc thruway> register demo.rpc '{"progress": true}'