Merge pull request #202 from thelounge/xpaw/ws
Change default socket.io transports to use websocket over polling
This commit is contained in:
commit
00f071dc56
@ -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"],
|
||||||
|
|
||||||
|
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user