Add device diagnostics and P2P access controls
This commit is contained in:
@@ -224,6 +224,7 @@
|
||||
let m;
|
||||
try { m = JSON.parse(e.data); } catch { return; }
|
||||
if (m.type === 'hello') { myPeer = m.peer; wsRetry = 0; }
|
||||
if (m.type === 'force-sync') sync();
|
||||
emit(m);
|
||||
};
|
||||
sock.onclose = () => {
|
||||
|
||||
Reference in New Issue
Block a user