From 13d101e092bdf3f60492ce0ece601b8b2d82e028 Mon Sep 17 00:00:00 2001 From: "sp.wack" <83104063+amanape@users.noreply.github.com> Date: Mon, 28 Oct 2024 19:53:31 +0400 Subject: [PATCH] fix(frontend): Record events sent to WS (#4596) --- frontend/src/context/socket.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/context/socket.tsx b/frontend/src/context/socket.tsx index de6c69ae9f7..259acd2e3e2 100644 --- a/frontend/src/context/socket.tsx +++ b/frontend/src/context/socket.tsx @@ -95,6 +95,7 @@ function SocketProvider({ children }: SocketProviderProps) { EventLogger.error("WebSocket is not connected."); return; } + setEvents((prevEvents) => [...prevEvents, JSON.parse(data.toString())]); wsRef.current.send(data); }, [],