voryx/thruway-cli
Composer 安装命令:
composer require voryx/thruway-cli
包简介
CLI for Thruway (WAMP)
关键字:
README 文档
README
Thruway CLI is a command line tool that allows you to execute WAMP commands for testing purposes.
Installation
Download thruway-cli.phar from the latest release.
$ chmod 755 thruway-cli.phar $ sudo mv thruway-cli.phar /usr/local/bin/thruway-cli
Example
$ thruway-cli wss://demo.crossbar.io/ws realm1
Commands
exit [<code>] help publish <uri> <value> [<options>] call <uri> [<args>] [<options>] subscribe <uri> [<options>] cancel register <uri> [<options>]
Subscribe
thruway> subscribe demo.topic thruway> subscribe demo. '{ "match": "prefix" }'
Publish
thruway> publish demo.topic 'Hello World' thruway> publish demo.topic 'Hello World' '{"exclude_me":false}'
Call
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}'
Register
thruway> register demo.rpc thruway> register demo.rpc '{"progress": true}'
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-07