Fix default socket.io transports

This commit is contained in:
xPaw 2016-03-19 18:48:36 +02:00
parent bbeeeda117
commit 9e8bc44e3a
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ module.exports = {
// Set socket.io transports // Set socket.io transports
// //
// @type array // @type array
// @default ["polling', "websocket"] // @default ["polling", "websocket"]
// //
transports: ["polling", "websocket"], transports: ["polling", "websocket"],

View File

@ -25,7 +25,7 @@ module.exports = function(options) {
var protocol = https.enable ? "https" : "http"; var protocol = https.enable ? "https" : "http";
var port = config.port; var port = config.port;
var host = config.host; var host = config.host;
var transports = config.transports || ["websocket", "polling"]; var transports = config.transports || ["polling", "websocket"];
if (!https.enable) { if (!https.enable) {
server = require("http"); server = require("http");