0.0.10 • Published 6 years ago

sse-client v0.0.10

Weekly downloads
3
License
ISC
Repository
-
Last release
6 years ago

sse-client

Simple Server Sent Event Client writtent in node. It allows to display server sent events prefixed with a timestamp, save events to a file, and filter unwanted events.

Installation

npm install -g sse-client

Usage

Usage: sse-client options

Options:

-h, --help                 outputs usage information
-V, --version              outputs the version number
-h, --hostname <hostname>  hostname of the event emitter (mandatory).
-f, --filters <filters>    events you don't want to log (separated with comma). Can not be used with "interactive" option.
-r, --record <filename>    filename to store outputs. Can not be used with "interactive" option.

Example

This command will listen Server Sent Events from IP 192.168.1.16, display any event whose field 'event' will be different from 'eit' or 'player', and record the logs in /tmp/sse.log.

sse-client -h 192.168.1.16 -f eit,player -r /tmp/sse.log

Reference

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago