2

Hi I a chat application in Reactjsand Redux. Currently I am not using any database, I am storing all the users in my redux store. I am sending the message and receiving the message using xmpp stanza.js. Now I want to show a typing indicator in my chat application. I don't have any idea how to implement that thing. You can imagine, I have simply a list of users in my Redux .These users have some property

Users={
  Id:123,
  LastMessagebody:"hii",
  Messagread:true,
  MessageAt:12:40Pm
  From:56
}
Mario Petrovic
  • 7,500
  • 14
  • 42
  • 62
  • can u define what is a typing indicator, like "I" in an input box ? Then how this has anything to do with the rest of data? just curious. – windmaomao Aug 30 '21 at 18:35
  • A typing indicator is a small interface component used to notify the user that the person on the other side is currently typing a message into the text box. – Puneet biswas Aug 30 '21 at 18:46
  • then your question is a bit big my friend. You need to paste some code. In general, depending on how the chat is designed, suppose it's a socket, when the data arrives, it has an event you can subscribe to. But of course this depends on the code. – windmaomao Aug 30 '21 at 18:48

0 Answers0