Skip to content

Commit

Permalink
fix(frontend): Record events sent to WS (#4596)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanape authored Oct 28, 2024
1 parent 6cf3728 commit 13d101e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/context/socket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
[],
Expand Down

0 comments on commit 13d101e

Please sign in to comment.