Open trevnorris opened 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.
The entire TCP UDP Sockets spec work started being shut down just 3 days after this was filed, this should probably be closed right?
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.
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.