Skip to content

mpj/snurra-socket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snurra-socket

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

_ = require 'highland'
socket = require('./index')()

_(socket('message')).each console.log

socket('connect').write 'ws://live.stellar.org:9001'

socket('send').write
  "command" : "subscribe"
  "streams" :  [ "transactions" ]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published