When looking for WebSocket on Firefox (or IE) …
if ("WebSocket" in window)
{
...
}
else
{
alert('Your browser does not support websocket');
}
They are both failing !
If they dont have any WebSocket, is there a way in JS to exchange some TCP message with a server ? (connect/send/recv ???)
Check out Socket.IO and Faye for portable implementations.