Merge pull request #242 from Medical-Insight/use-wss-for-binary-detect

Use wss when creating localhost connection to detect binary support (closes #242)
This commit is contained in:
Solly 2014-02-17 18:09:16 -05:00
commit e791b87572
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ function init(protocols) {
// TODO: this sucks, the property should exist on the prototype
// but it does not.
try {
if (bt && ('binaryType' in (new WebSocket("ws://localhost:17523")))) {
if (bt && ('binaryType' in (new WebSocket("wss://localhost:17523")))) {
Util.Info("Detected binaryType support in WebSockets");
wsbt = true;
}