2017 © Pedro Peláez
 

library thruway-cli

CLI for Thruway (WAMP)

image

voryx/thruway-cli

CLI for Thruway (WAMP)

  • Sunday, January 29, 2017
  • by davidwdan
  • Repository
  • 3 Watchers
  • 4 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Thruway CLI

Thruway CLI is a command line tool that allows you to execute WAMP commands for testing purposes., (*1)

Installation

Download thruway-cli.phar from the latest release., (*2)

$ 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}'

The Versions