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 }