Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sse-client

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sse-client

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

  • 0.0.10
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
237
increased by4.41%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 13 Nov 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc