Is it possible for the firefox addon to connect to websites?
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 reports
Error: Firefox cannot establish a connection to the server at ws: //echo.websocket.org/.
source share