Weak references are coming, https://github.com/tc39/proposal-weakrefs
[0] does support for socket(udp and tcp)? [1] encountered with problem when Porting UDP socket communication c code using emscripten
one example among other, and so you can use WebAssembly all you want you will never be able to implement flash.net.DatagramSocket
[0]: https://github.com/WebAssembly/design/issues/1251 [1]: https://github.com/emscripten-core/emscripten/issues/5196
It would require a server component as gateway, so what.
Weak references are coming, https://github.com/tc39/proposal-weakrefs