Skip to content

Commit

Permalink
Enabling Websockets!
Browse files Browse the repository at this point in the history
Enabling Websockets if they are on. Need to confirm if they need to be
turned on manually.
  • Loading branch information
shanselman committed Oct 31, 2014
1 parent 2acba2a commit 0b53c07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/websocket.js
Expand Up @@ -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']);
});
}

Expand Down
3 changes: 2 additions & 1 deletion web.config
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.webServer>
<handlers>
<webSocket enabled="true" />
handlers>
<add name="iisnode" path="server.js" verb="*" modules="iisnode"/>
</handlers>
<rewrite>
Expand Down

0 comments on commit 0b53c07

Please sign in to comment.