Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .browserslistrc

This file was deleted.

4 changes: 2 additions & 2 deletions lib/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1041,8 +1041,8 @@ client.load = function load (serverSettings, callback) {
// Client-side code to connect to server and handle incoming data
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* global io */
client.socket = socket = io.connect({ transports: ["polling"] });
client.alarmSocket = alarmSocket = io.connect("/alarm", { multiplex: true, transports: ["polling"] });
client.socket = socket = io.connect({ transports: ["polling", "websocket"] });
client.alarmSocket = alarmSocket = io.connect("/alarm", { multiplex: true, transports: ["polling", "websocket"] });

socket.on('dataUpdate', dataUpdate);

Expand Down
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@
"test:slow": "SLOW_TEST_THRESHOLD=1000 env-cmd -f ./my.test.env mocha --timeout 10000 --require ./tests/hooks.js --exit ./tests/*.test.js"
},
"main": "lib/server/server.js",
"browserslist": [
"Chrome >= 80",
"Firefox >= 78",
"Safari >= 13.1",
"iOS >= 13.4",
"Edge >= 80"
],
"nodemonConfig": {
"ignore": [
"tests/*",
Expand Down
Loading