I did not write any extensions, I simply turned on an experimental flag for the TCP and UDP Socket API. [1]
[1] https://www.w3.org/TR/tcp-udp-sockets/
Reply on news.ycombinator.com