diff options
| author | Adam Soltys <[email protected]> | 2022-09-07 13:29:30 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-07 13:29:30 -0700 |
| commit | 3e11c9e4aa3618e58af413c98d6992ae18d444f7 (patch) | |
| tree | b5ff453effe14fcec4e988d02c9a9362875502b0 /lib/sockets.js | |
| parent | 06b59b585ac9af7be106b9c1271d251ba20f6630 (diff) | |
| download | coinos-server-3e11c9e4aa3618e58af413c98d6992ae18d444f7.tar.gz coinos-server-3e11c9e4aa3618e58af413c98d6992ae18d444f7.zip | |
prettier
Diffstat (limited to 'lib/sockets.js')
| -rw-r--r-- | lib/sockets.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/sockets.js b/lib/sockets.js index 252ee552..9ff454aa 100644 --- a/lib/sockets.js +++ b/lib/sockets.js @@ -15,7 +15,6 @@ const code = 1000; const wss = new WebSocket.Server({ clientTracking: false, noServer: true }); -/* eslint-disable-next-line */ const pick = (O, ...K) => K.reduce((o, k) => ((o[k] = O[k]), o), {}); const all = {}; const subscriptions = []; @@ -34,7 +33,6 @@ export const emit = (username, type, data) => { (data.address && s.invoice.unconfidential === data.address) ) { s.ws.send(JSON.stringify({ type, data })); - // subscriptions.splice(i, 1); } } } @@ -87,7 +85,6 @@ app.register(async function(app) { case "login": let token = data; - // if (differenceInSeconds(new Date(), lastSeen[token]) < 5) return; lastSeen[token] = new Date(); try { |
