UNPKG
queen
Version:
dev (0.5.0)
latest (0.6.0)
0.6.0
0.5.1
0.5.0
0.4.0
A platform for running scripts on many browsers
queenjs.com
turn/queen
queen
/
bower_components
/
modernizr
/
feature-detects
/
websockets-binary.js
8 lines
(5 loc)
•
246 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
// binaryType is truthy if there is support.. returns "blob" in new-ish chrome.
// plus.google.com/115535723976198353696/posts/ERN6zYozENV
Modernizr
.
addTest
(
'websocketsbinary'
, !!(
window
.
WebSocket
&& (
new
WebSocket
(
'ws://.'
)).
binaryType
) );