open websocket connection firefox addon
Is it possible for a firefox addon to establish a websocket connections?

when I try: 

var wsUri = "ws://echo.websocket.org/";
var ws = gBrowser.contentWindow.window.WebSocket || gBrowser.contentWindow.window.MozWebSocket;	
var websocket = new ws(wsUri);


in the error console the message says
Error: Firefox can't establish a connection to the server at ws://echo.websocket.org/.


open websocket connection firefox addon
===

Is it possible for a firefox addon to establish a websocket connections?

when I try: 

var wsUri = "ws://echo.websocket.org/";
var ws = gBrowser.contentWindow.window.WebSocket || gBrowser.contentWindow.window.MozWebSocket;	
var websocket = new ws(wsUri);


in the error console the message says
Error: Firefox can't establish a connection to the server at ws://echo.websocket.org/.

