Skip to content

Commit

Permalink
codacy fix and refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
tamsay committed Jun 22, 2023
1 parent 8a23602 commit fc97600
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/mms-Admin/src/utils/signalrService.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ const hubUrl = "https://your-signalr-server-url";
const connection = new HubConnectionBuilder().withUrl(hubUrl).build();

export const startSignalRConnection = async () => {
try {
await connection.start();
console.log("SignalR connection established.");
} catch (err) {
console.error("Error while establishing SignalR connection:", err);
}
// try {
// await connection.start();
// console.log("SignalR connection established.");
// } catch (err) {
// console.error("Error while establishing SignalR connection:", err);
// }
};

export const addSignalRMessageListener = (callback) => {
Expand Down

0 comments on commit fc97600

Please sign in to comment.