Skip to content

Commit

Permalink
fix(websocket): Add logs /4
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Sep 30, 2024
1 parent 4cccb78 commit a17f992
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/src/pages/actions/actionsOpenalexFeedback.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default function ActionsOpenalexFeedback({ allOpenalexCorrections, sendJs
const feedback = async () => {
try {
console.log('Send WS message');
console.log(sendJsonMessage);
const tmp = sendJsonMessage({ data: allOpenalexCorrections, email: userEmail });
console.log(tmp);
} catch (error) {
Expand Down
3 changes: 2 additions & 1 deletion client/src/pages/views/openalex.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export default function Openalex({
toastType: toastType ?? 'info',
});
},
onOpen: () => console.log('opened'),
onOpen: () => console.log('Websocket opened'),
onClose: () => console.log('Websocket closed'),
share: true,
});

Expand Down

0 comments on commit a17f992

Please sign in to comment.