From 0b53c07956a4aeacbf420a969b60893a23934f4a Mon Sep 17 00:00:00 2001 From: Scott Hanselman Date: Fri, 31 Oct 2014 12:58:14 -0700 Subject: [PATCH] Enabling Websockets! Enabling Websockets if they are on. Need to confirm if they need to be turned on manually. --- lib/websocket.js | 4 ++-- web.config | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/websocket.js b/lib/websocket.js index 97c132ee..603b8d46 100644 --- a/lib/websocket.js +++ b/lib/websocket.js @@ -54,9 +54,9 @@ var dir2Char = { // reduce logging io.set('log level', 0); - //Windows Azure Web Sites does not currently support WebSockets, so use long-polling + //Try for Websockets (Azure Supports if it's on) then fallback io.configure(function () { - io.set('transports', ['xhr-polling']); + io.set('transports', ['websocket','xhr-polling']); }); } diff --git a/web.config b/web.config index bcd8b00c..03403d3f 100644 --- a/web.config +++ b/web.config @@ -1,7 +1,8 @@ - + + handlers>