listen web-socket

The global listen command is used for starting a Web Socket listener for a stream and output all events to the console.

This command can receive events from both Source Streams and Derived Streams.

(no subcommand)

Start listening for events.

Usage

strm listen web-socket (stream-name) [flags].

Arguments

Argument

Description

stream-name

The name of the stream to read events from.

Flags

Flag

Description

client-id

OAuth2 client credentials

client-secret

OAuth2 client credentials

See Global flags for all global flags.

Client id and secret are optional flags provided the stream has been created with the --save flag. In that case ~/.config/strmprivacy/saved-entities/Stream/<stream-name>.json will hold the necessary credentials, and the cli will use these.