- update: app.js: add really long timeout for closing missed sockets
 - update: app.js: fix for minibrowser connectivity
 - update: app.js: enhance security
 - update: wtv-home:/home: fix wtv-needs-upgrade -> wtv-need-upgrade
 - update: wtv-head-waiter:/login-stage-two: do not send wtv-settings:/get to minibrowser
 - update: wtv-1800:/preregister: Disconnect and clean up all previous sockets for the connecting SSID when hitting preregister. Also re-create wtvsec_login.
 - update: add initial wtv-capability-flags decoding, as well as wtv-tricks:/info demonstration
 - update: rename classes
 - minor update: quirky 'Special Thanks' in each custom class.
 - minor update: notice about Initial Shared Key and multiple minisrvs
 - update: wtv-music:/demo/index: update wtv-star image paths
 - update: app.js: fix unencrypted post
 - update: app.js: improve buffering and cleanup in attempt to fix occasional 'double-up' bug
 - update: info.js: remove debug dump of capabilities
 - Update: add test.js, syntax-testing script for `npm test`
 - Update: wtv-chat:/home experimental nick change page thanks to MattMan (chat still giving issues on real boxes, works in Viewer)
 - Update: README.md: Add ways to support the project
This commit is contained in:
zefie
2021-07-24 09:41:00 -04:00
parent b0fd271dc3
commit e591d255b7
17 changed files with 661 additions and 73 deletions

View File

@@ -6,6 +6,27 @@ if (request_headers["wtv-ticket"]) {
gourl = "wtv-head-waiter:/login-stage-two?";
}
if (socket.ssid) {
if (ssid_sessions[socket.ssid].data_store) {
if (ssid_sessions[socket.ssid].data_store.sockets) {
var i = 0;
ssid_sessions[socket.ssid].data_store.sockets.forEach(function (k) {
if (typeof k != "undefined") {
if (k != socket) {
k.destroy();
ssid_sessions[socket.ssid].data_store.sockets.delete(k);
i++;
}
}
});
if (i > 0 && zdebug) console.log(" # Closed", i, "previous sockets for", socket.ssid);
}
}
if (ssid_sessions[socket.ssid].data_store.wtvsec_login) {
delete ssid_sessions[socket.ssid].data_store.wtvsec_login;
}
}
headers = `200 OK
Connection: Keep-Alive
wtv-expire-all: wtv-