/rsocket-cli

Command-line client for ReactiveSocket

Primary LanguageKotlinApache License 2.0Apache-2.0

RSocket CLI

Description

Simple RSocket CLI focused on sending basic traffic to servers built using RSocket e.g. help debug a mobile <=> server integration issue.

Supports ws and wss URIs

Consider if you should use rsc instead

For rsocket-java specfic testing, the command line you probably want is https://github.com/making/rsc . This library builds on https://github.com/rsocket/rsocket-kotlin .

Build Status

Build and Run

To build the RSocket CLI:

./gradlew --console plain installDist

To run:

./build/install/rsocket-cli/bin/rsocket-cli --help

The build and run:

$ ./rsocket-cli --help

Install via Homebrew

Use tab completion for help with specifying the operation type.

$ brew install yschimke/tap/rsocket-cli

Examples

A generic interaction:

$ rsocket-cli --request --debug wss://rsocket-demo.herokuapp.com/rsocket      

A spring routed request to query tweets:

$ rsocket-cli --route=searchTweets -i Sunday wss://rsocket-demo.herokuapp.com/rsocket