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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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