I want to detect support for web sockets without try
/catch
and without errors in the consoles of any browsers including older browsers that do not support web sockets.
I have not found anything I feel is related to web socket under the window
and window.document
objects. Also I've tried for (i in new)
which the browsers don't see to like.
Absolutely no frameworks or libraries.
Essentially the DOM object detection should be able to fit in to an if
condition...
if (x in y) {alert('Web Sockets is supported.');}