fix(frontend): Record events sent to WS (#4596)

This commit is contained in:
sp.wack
2024-10-28 19:53:31 +04:00
committed by GitHub
parent 6cf3728247
commit 13d101e092

View File

@@ -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);
},
[],