worked on realtime.ts

- added named export
- sock.disconnect() has no argument

Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
Philip Molares 2020-04-12 20:54:46 +02:00 committed by David Mehren
parent 9afc2e19a4
commit 46774282cc
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB

View file

@ -163,7 +163,7 @@ setInterval(function () {
const sock = note.socks[i]
if (typeof sock !== 'undefined' && sock) {
setTimeout(function () {
sock.disconnect(true)
sock.disconnect()
}, 0)
}
}
@ -952,4 +952,4 @@ function connection (socket) {
})
}
module.exports = realtime
export { realtime }