From 3674ae7b8afe92835d451e31b70462495dbf3527 Mon Sep 17 00:00:00 2001 From: talksik Date: Mon, 9 May 2022 05:47:21 -0500 Subject: [PATCH] Update lineDataProvider.tsx --- packages/desktop/src/controller/lineDataProvider.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/desktop/src/controller/lineDataProvider.tsx b/packages/desktop/src/controller/lineDataProvider.tsx index 8793e53..4d66af2 100644 --- a/packages/desktop/src/controller/lineDataProvider.tsx +++ b/packages/desktop/src/controller/lineDataProvider.tsx @@ -38,7 +38,9 @@ function useSocketHandler(linesData: MasterLineData[]) { // ! POTENTIAL DIAGNOSIS with socket reconnections on electron idle causing // no more event listeners being fired off: potentially because the listeners were for an older manager or instance - // so when the client reconnects, with another instance, + // so when the client reconnects, with another instance, the old listeners are lost + // https://stackoverflow.com/questions/34984980/socket-io-not-receiving-emit-data-after-reconnect + // https://socket.io/docs/v4/client-options/#reconnection useEffect(() => { $ws = io("http://localhost:5000", {