mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
fix(frontend): Record events sent to WS (#4596)
This commit is contained in:
parent
6cf3728247
commit
13d101e092
@ -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);
|
||||
},
|
||||
[],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user