Fix default socket.io transports
This commit is contained in:
parent
bbeeeda117
commit
9e8bc44e3a
@ -209,7 +209,7 @@ module.exports = {
|
||||
// Set socket.io transports
|
||||
//
|
||||
// @type array
|
||||
// @default ["polling', "websocket"]
|
||||
// @default ["polling", "websocket"]
|
||||
//
|
||||
transports: ["polling", "websocket"],
|
||||
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user