I have tried NS v2.9.5.2rc2, and also downgrading to some of the recent rc versions of NS, but they all have the same problem (v2.9.5rc24 was the earliest one I was able to try). I have also created a new Firefox profile with just the GreaseMonkey and NoScript addons installed with default settings - and still the problem persists.
There are no errors when trying to use the Web Socket - it just fails to connect. And it does not matter what website the GM script is loaded on.
The script I am using creates the Web Socket like this:
Code: Select all
var ws = new WebSocket('ws://localhost:55443/');
ws.onerror = function (event) {
var message = 'Web Socket Test\n\n'
if (event.state !== WebSocket.OPEN) {
message += 'Could not connect to server'
} else {
message += 'Unknown reason'
}
window.alert(message)
}
I am using Firefox v50.0 and GreaseMonkey v3.9.
