2.0.2 • Published 11 years ago

ws-json-client-stream v2.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
11 years ago

ws-json-client-stream

A wrapper around the ws npm module that adds JSON-parsing stream interface.

Example usage

Below is an example that subscribes to all the transactions happening on the Stellar network. Stellar API endpoint documentation

var _ = require( 'highland' ),
    socket = require( 'ws-json-client-stream' ),
    stellarSocket = socket( 'ws://live.stellar.org:9001' );

_(stellarSocket).each(console.log);

stellarSocket.write({
  "command" : "subscribe",
  "streams" :  [ "transactions" ]
});
3.0.0

11 years ago

2.0.2

11 years ago

2.0.1

11 years ago

2.0.0

11 years ago

1.0.0

11 years ago