Skip to content

v0.0.1

Choose a tag to compare

@reqshark reqshark released this 09 May 08:41
· 2 commits to master since this release

a source stream interface to recvfrom

const pullfrom = require('pull-recvfrom')
const recvfrom = require('recvfrom')

const sockpath = `/tmp/mysocketpath`
const sz = 99999

const pull = require('pull-stream')

pull(
  pullfrom(sockpath, sz, recvfrom), // pass address and recvfrom to pullfrom()
  pull.drain(console.log)
)