How to create a web messenger
I’ve watched multiple YouTube tutorial videos and searched posts(message, chat, typing) on community, but I did’t find anything regarding a web messenger.
What I’m trying to build is a web messenger that mimics a live chat interaction with multiple messages back and forth between a user and opponent. Specifically, I want to type a message in the input field, press Enter, and have the message appear as if it’s sent. Then, after a short delay, I want a response message from the other side to appear, simulating a live conversation.
I’ve already watched tutorial videos that explain how to make the input field’s content appear as a message when pressing Enter, but there’s nothing about how to make the other side's message appear with a delay, or how to show the typing indicator (e.g., "..." dots) while the other side is supposedly typing.
Could you please explain how I can achieve the following:
Display the message I typed in the input field after pressing Enter.
Show a "typing..." animation or dots ("...") while the other side is typing.
Display a delayed response message as if it’s coming from the other side.
I can’t figure out what I did wrong here. Here’s the link.
https://cloud.protopie.io/p/a8ec8dd25300943f4d1d1ef8
I’ve been trying to solve this issue for over three weeks, testing everything from Figma to ProtoPie, but I still haven’t been able to make it work. It would be fantastic if anyone can help me out here. 😄
Tutorials I’ve already watched.
https://www.youtube.com/watch?v=EeBt_NRg2FI