highland-duplex

highland duplex constructors


License
ISC
Install
npm install highland-duplex@0.0.4

Documentation

my tests

Build Status

ping-pong-duplex-check - tests (depend on me)

Build Status

#API

  • crossDuplexes(duplex1, duplex2)

maybe it should not be here

  • makeDestStream(sendFunction: fn(?))

based on some callback we get stream - that will invoke that func on every stream value

  • makeDuplexStream(sourceFct, destFct)
  • makeSourceStreamByInjectingCallingFunction(object, funcName)

object will call object[funcName] during its life cycle to pass values, we create source stream that have this values

  • makeSourceStreamFromEventListener(objectToListen, event)

object will dispatch event during its life cycle to pass values, we create source stream that have this values

  • makeSourceStreamFromEventSpawningObject(objectToListen)

object is a mechanish to pass some values and can be listened (chrome.runtime.onConnect), we create source stream that have this values