Version 4.7.3

This commit is contained in:
Chrystian Huot 2020-09-27 11:46:52 -04:00
parent d7e1cc67e5
commit 53caddffec
7 changed files with 13 additions and 14 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "rdio-scanner-client", "name": "rdio-scanner-client",
"version": "4.7.2", "version": "4.7.3",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View file

@ -32,5 +32,5 @@
"build": "ng build --base-href ./ --prod", "build": "ng build --base-href ./ --prod",
"start": "ng serve" "start": "ng serve"
}, },
"version": "4.7.2" "version": "4.7.3"
} }

View file

@ -11,5 +11,5 @@
"start": "node run", "start": "node run",
"update": "node update" "update": "node update"
}, },
"version": "4.7.2" "version": "4.7.3"
} }

2
server/.gitignore vendored
View file

@ -1,4 +1,6 @@
/.env /.env
/*.pem
/*.key
/config.json* /config.json*
/database.sqlite* /database.sqlite*
/dist /dist

View file

@ -19,7 +19,6 @@
'use strict'; 'use strict';
const { Server } = require('http');
const url = require('url'); const url = require('url');
const WS = require('ws'); const WS = require('ws');
@ -66,15 +65,13 @@ class WebSocket {
this.heartbeat = undefined; this.heartbeat = undefined;
}); });
if (this.httpServer instanceof Server) { this.httpServer.on('upgrade', (request, socket, head) => {
this.httpServer.on('upgrade', (request, socket, head) => { const pathname = url.parse(request.url).pathname;
const pathname = url.parse(request.url).pathname;
if (pathname === '/' || pathname === '/index.html') { if (pathname === '/' || pathname === '/index.html') {
this.wss.handleUpgrade(request, socket, head, (ws) => this.wss.emit('connection', ws, request)); this.wss.handleUpgrade(request, socket, head, (ws) => this.wss.emit('connection', ws, request));
} }
}); });
}
} }
logClientsCount() { logClientsCount() {

View file

@ -1,6 +1,6 @@
{ {
"name": "rdio-scanner-server", "name": "rdio-scanner-server",
"version": "4.7.2", "version": "4.7.3",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View file

@ -39,5 +39,5 @@
"build": "webpack", "build": "webpack",
"start": "nodemon" "start": "nodemon"
}, },
"version": "4.7.2" "version": "4.7.3"
} }