I am trying to embed a working WebSocket connection in WebWorker. It should be simple, and if I use Chrome as a b rower. However, since this experiment should be part of production, I need it to work on all great browsers, namely Firefox.
My problem is that I cannot get it to work with Firefox. At first, Firefox was unable to create WebWorker. It was a bug and fixed with version 9. But now it seems that he will not be able to create a WebSocket inside the Workspace.
I tried the following line of code:
var ws = new WebSocket(url);
which fails:
WebSocket is not defined
Well, according to this, it should work. But this is not so, neither within WebWorker nor outside this context. I tried an older one
var ws = new MozWebSocket(url);
, , WebWorker, , .
, ? , WebSockets , 9 , Chrome ( , , ). - ?
Im Ubuntu 11.10 .
!