Skip to content

abstraction library to normalize data streaming types and give them a common interface

Notifications You must be signed in to change notification settings

SuddenDevelopment/metastream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metastream

abstraction library to normalize data streaming types and give them a common interface

supported streaming:

  1. websocket
  2. pubnub
  3. socket.io
  4. pusher
  5. sock.js
  6. http json stream

adapted streaming

  1. api polling
  2. csv stream

todo:

  1. abstract out of ohm.ai
  2. add api polling from api2stream lib
  3. add webrtc: http://peerjs.com/

Pass in a config get back an object to control the stream;

//set config
 var objConfig={ 
     type:'websocket'
    ,addr:'wss://ws.blockchain.info/inv'
    ,sendOnConnect:'{"op":"unconfirmed_sub"}'
    ,channels:['pubnub-twitter']
    ,fnResults=function(results){ console.log(results); }
    ,fnError=function(results){ console.log(results); }
    ,fnClose=function(results){ console.log(results); }
    ,fReconnect=true
  }
  
  //instantiate
  var objStream = new metaStream(objConfig);
  
  // go
  objStream.go();
  
  // stop
  objStream.stop();

About

abstraction library to normalize data streaming types and give them a common interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •