Skip to content

Commit

Permalink
putting comments back
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack committed Feb 5, 2025
1 parent 1e5360b commit 6bf85e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function App() {

websocket.current.onopen = () => {
console.log("WebSocket Connected to React");
setIsWebSocketConnected(true);
setIsWebSocketConnected(true); // Update state when connected
websocket.current.send("Websocket Connected to React");
};

Expand All @@ -85,7 +85,7 @@ function App() {

websocket.current.onclose = (event) => {
console.log("WebSocket connection closed: ", event);
setIsWebSocketConnected(false);
setIsWebSocketConnected(false); // Update state when connected
setWebSocketError("WebSocket connection closed. Data streaming stopped.");
};

Expand Down

0 comments on commit 6bf85e0

Please sign in to comment.