Skip to content

Commit

Permalink
useWebSocketForChatBot Errors fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kitretsu2809 committed Sep 29, 2024
1 parent 9af4f13 commit 365e743
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/hooks/useWebSocketForChatBot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ const useWebsocketForChatbot=({socketRef,setMessages,router}:useWebsocketForChat
const handleError = handleWebSocketError;
const socket = initializeWebSocketConnection(
url,
{
handleOpen,
handleMessage,
handleClose,
handleError,
}
);
socketRef.current = socket;

Expand Down

0 comments on commit 365e743

Please sign in to comment.