whatwg / streams

Streams Standard
https://streams.spec.whatwg.org/
Other
1.35k stars 160 forks source link

Implementation of net.Socket #305

Open trevnorris opened 9 years ago

trevnorris commented 9 years ago

I'm curious how this API would be used to completely replace Event Emitters to implement something like net.Socket. This issue is a reminder to do a reference implementation.

domenic commented 9 years ago

I mentioned this in IRC I think, but I worked pretty closely with the author of http://www.w3.org/2012/sysapps/tcp-udp-sockets/#interface-tcpsocket and think it's a pretty sensible interface. I'll definitely do a reference implementation for io.js though, probably with that API shape but maybe with minor deviations as I start working on it.

isonmad commented 7 years ago

The entire TCP UDP Sockets spec work started being shut down just 3 days after this was filed, this should probably be closed right?

domenic commented 7 years ago

I think it's still interesting to do an implementation in Node.js that uses Readable + Writable streams to wrap libuv or the raw socket APIs.