| Crates.io | krossbar-connect |
| lib.rs | krossbar-connect |
| version | 0.5.3 |
| created_at | 2024-05-19 12:31:46.823303+00 |
| updated_at | 2024-05-30 16:08:15.582793+00 |
| description | Krossbar bus connect tool |
| homepage | https://krossbar.rs |
| repository | https://github.com/krossbar-platform/krossbar-bus |
| max_upload_size | |
| id | 1244883 |
| size | 51,862 |
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.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 helpinspect 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