[Commotion-admin] [mlab-browser-ext] UI freezes for the duration of NDT test (#22)

Josh Mize notifications at github.com
Tue Jan 6 12:06:38 EST 2015


yes, the TCPSocket API is only enabled by default on Firefox OS and off by default in desktop Firefox, so it cannot be used from a webpage, but I figured it may be possible to do from an extension, but I wasn't sure as I'd never tried, but after doing a little more research it does look possible: according to http://stackoverflow.com/a/26359452/2965637 you should be able to create a TCPSocket instance from an extension using the following:

```js
var socket = Cc["@mozilla.org/tcp-socket;1"].createInstance(Ci.nsIDOMTCPSocket);
```

---
Reply to this email directly or view it on GitHub:
https://github.com/opentechinstitute/mlab-browser-ext/issues/22#issuecomment-68895174
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chambana.net/pipermail/commotion-admin/attachments/20150106/d43f4030/attachment.html>


More information about the Commotion-admin mailing list