3 releases

0.5.3 May 30, 2024
0.5.1 May 22, 2024
0.5.0 May 19, 2024

#1565 in Network programming

Download history 17/week @ 2024-07-28 16/week @ 2024-09-22

120 downloads per month

MIT license

71KB
1K SLoC

Crates.io MIT licensed Build Status

krossbar-connect

Krossbar bus connect

Krossbar connect allows connecting to Krossbar services to inspect endpoints or make calls.

Note: To be able to use connect, you need corresponding features, which are enabled by default:

  • privileged-services hub feature, which allows using Krossbar tools;
  • inspection Krossbar bus library feature, which adds inspect service endpoint.

Usage

Running the binary allows you to connect to a service. If succefully connected, the tool enters interactive mode and provides a set of commands for usage:

  • help to print commands help
  • inspect to inspect target service endpoint;
  • call {method_name} {args_json} to call a method. Args should be a valid JSON and deserialize into the method params type.
  • subscribe {signal_name} to subscribe to a signal or a state. This spawns an async task, so you can continue working with the service. All incoming signal emmitions will output into stdout.
  • q to quit the tool.
Krossbar bus connect tool

Usage: krossbar-connect [OPTIONS] <TARGET_SERVICE>

Arguments:
  <TARGET_SERVICE>  Service to connect to

Options:
  -l, --log-level <LOG_LEVEL>  Log level: OFF, ERROR, WARN, INFO, DEBUG, TRACE [default: WARN]
  -h, --help                   Print help
  -V, --version                Print version

Dependencies

~16–31MB
~404K SLoC