Socket
Socket
Sign inDemoInstall

sse-client

Package Overview
Dependencies
42
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sse-client

sse-client ----------


Version published
Weekly downloads
428
decreased by-0.7%
Maintainers
1
Install size
672 kB
Created
Weekly downloads
 

Readme

Source

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

  • HTML5 Rocks article: Stream Updates with Server-Sent Events

FAQs

Last updated on 13 Nov 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc