update: do not delete WTVSec on last socket, instead recreate on prereg
update: clean up SSID session data only if client is not seen for 3 minutes update: add shouldWeCompress() function update: tweak lzpf (still corrupted) update: rename wtv-setup:/get to wtv-setup:/get-settings update: add additional headers to wtv-setup:/get-settings update: add initial blank wtv-music:/get-playlist
This commit is contained in:
@@ -51,6 +51,15 @@ class WTVClientSessionData {
|
||||
return false;
|
||||
}
|
||||
|
||||
currentConnections() {
|
||||
if (this.data_store) {
|
||||
if (this.data_store.sockets) {
|
||||
return this.data_store.sockets.size;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
get(key = null) {
|
||||
if (typeof (this.data_store) === 'undefined') return null;
|
||||
else if (key === null) return this.data_store;
|
||||
|
||||
Reference in New Issue
Block a user