Open yurydelendik opened 10 years ago
TCPSocket is now available from chrome code in nightlies and aurora.
let TCPSocket = Cc["@mozilla.org/tcp-socket;1"]
.createInstance(Ci.nsIDOMTCPSocket);
let socket = TCPSocket.open("127.0.0.1", 5037, {});
While we can implement this the ShumwayWorker using the sync communication channel (well, or just any channel, really), having TCPSocket in workers will make things much more awesome. That's bug 916199
The code will use mozTCPSocket, so it needs this interface be available for Shumway code (on chrome or content side)
See also https://github.com/yurydelendik/rtmp.js