the way of IO
"We should have some ways of connecting programs like garden hose--screw in another segment when it becomes when it becomes necessary to massage data in another way. This is the way of IO also."
Doug McIlroy. October 11, 1964 http://cm.bell-labs.com/who/dmr/mdmpipe.html
input to output
- (throttling lib)
Back and forth, like a telephone.
When you see
a.pipe(b).pipe(a) you've probably got a duplex stream.
(use case: web server peering)
streams inside streams
streams in the browser
freestyle stream livecoding demo
let's build a streaming webapp that:
- synchronizes state across all users
- listens on a server-side event emitter
- has an rpc control interface
- all as streams over mux-demux
- in node and the browser
- across multiple servers
npm install all the things
write the code
the third step is you're done