From 46774282cc4fbafeebcca9ba4c5933109902b8a8 Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Sun, 12 Apr 2020 20:54:46 +0200 Subject: [PATCH] worked on realtime.ts - added named export - sock.disconnect() has no argument Signed-off-by: Philip Molares Signed-off-by: David Mehren --- lib/realtime.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/realtime.ts b/lib/realtime.ts index c5671f47d..1934c18ba 100644 --- a/lib/realtime.ts +++ b/lib/realtime.ts @@ -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 }