Merge pull request #202 from thelounge/xpaw/ws

Change default socket.io transports to use websocket over polling
This commit is contained in:
Jérémie Astori 2016-03-19 13:25:58 -04:00
commit 00f071dc56
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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");