Skip to content

Commit

Permalink
feat(version): release 0.27.3 version
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Jan 9, 2024
1 parent 0c927af commit 60115d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ui",
"version": "0.27.2",
"version": "0.27.3",
"private": true,
"scripts": {
"dev": "react-scripts start",
Expand Down
3 changes: 3 additions & 0 deletions src/contexts/RobotContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,17 @@ export default ({ children }: any) => {
setRos(rosClient);

rosClient?.on("connection", function () {
console.log("Connected to websocket server.");
connectionsReducer?.ros === null &&
dispatcher({ type: "ros", payload: true });
});
rosClient?.on("error", function (error) {
console.log("Error connecting to websocket server: ", error);
connectionsReducer?.ros === null &&
dispatcher({ type: "ros", payload: false });
});
rosClient?.on("close", function () {
console.log("Connection to websocket server closed.");
connectionsReducer?.ros === null &&
dispatcher({ type: "ros", payload: false });
});
Expand Down

0 comments on commit 60115d3

Please sign in to comment.