From 9e8bc44e3aa34ebc0fbd14f57b17578c7facfe6c Mon Sep 17 00:00:00 2001 From: xPaw Date: Sat, 19 Mar 2016 18:48:36 +0200 Subject: [PATCH] Fix default socket.io transports --- defaults/config.js | 2 +- src/server.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults/config.js b/defaults/config.js index 6afb1953..2ad86a51 100644 --- a/defaults/config.js +++ b/defaults/config.js @@ -209,7 +209,7 @@ module.exports = { // Set socket.io transports // // @type array - // @default ["polling', "websocket"] + // @default ["polling", "websocket"] // transports: ["polling", "websocket"], diff --git a/src/server.js b/src/server.js index 030fb9f3..46261d3f 100644 --- a/src/server.js +++ b/src/server.js @@ -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");