Files
Modernizr/feature-detects/websockets.js
Markel F d31f4a000d Solve some polyfill link issues (#2576)
* Delete broken links, fix redirects

* Removed 2 dead repositories

* Replace github http links with https

* Upgrade to https

* Solve metadata errors

* Restore css3pie
2020-06-24 21:35:36 +02:00

31 lines
825 B
JavaScript

/*!
{
"name": "WebSockets Support",
"property": "websockets",
"authors": ["Phread (@fearphage)", "Mike Sherov (@mikesherov)", "Burak Yigit Kaya (@BYK)"],
"caniuse": "websockets",
"tags": ["html5"],
"knownBugs": ["This test will reject any old version of WebSockets even if it is not prefixed such as in Safari 5.1"],
"notes": [{
"name": "CLOSING State and Spec",
"href": "https://www.w3.org/TR/websockets/#the-websocket-interface"
}],
"polyfills": [
"sockjs",
"socketio",
"websocketjs",
"atmosphere",
"graceful-websocket",
"portal",
"datachannel"
]
}
!*/
define(['Modernizr'], function(Modernizr) {
var supports = false;
try {
supports = 'WebSocket' in window && window.WebSocket.CLOSING === 2;
} catch (e) {}
Modernizr.addTest('websockets', supports);
});