Skip to content
Snippets Groups Projects
Unverified Commit f6c7afd8 authored by Avanish Singh's avatar Avanish Singh Committed by GitHub
Browse files

Update ChatbotComponent.js

parent f57ee532
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ const ChatbotComponent = () => {
const newUserMessage = createMessage(value_info, value_type, "User");
setMessages([...messages, newUserMessage]);
socket.emit('human',value_info)
socket.emit('Client message',value_info)
socket.on('bot-message',(data) =>{
const newBotMessage = createMessage(data, "left", "Bot");
setMessages([...messages,newUserMessage,newBotMessage]);
......@@ -72,4 +72,4 @@ const ChatbotComponent = () => {
);
};
export default ChatbotComponent;
\ No newline at end of file
export default ChatbotComponent;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment