Skip to content

Commit

Permalink
Merge pull request #202 from thelounge/xpaw/ws
Browse files Browse the repository at this point in the history
Change default socket.io transports to use websocket over polling
  • Loading branch information
astorije committed Mar 19, 2016
2 parents bbeeeda + 9e8bc44 commit 00f071d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion defaults/config.js
Expand Up @@ -209,7 +209,7 @@ module.exports = {
// Set socket.io transports
//
// @type array
// @default ["polling', "websocket"]
// @default ["polling", "websocket"]
//
transports: ["polling", "websocket"],

Expand Down
2 changes: 1 addition & 1 deletion src/server.js
Expand Up @@ -25,7 +25,7 @@ module.exports = function(options) {
var protocol = https.enable ? "https" : "http";
var port = config.port;
var host = config.host;
var transports = config.transports || ["websocket", "polling"];
var transports = config.transports || ["polling", "websocket"];

if (!https.enable) {
server = require("http");
Expand Down

0 comments on commit 00f071d

Please sign in to comment.