Forum Academy Marketplace Showcase Pricing Features

Chat and repeating group : add last message client side

Hi everyone !

I’am trying to implement a chat feature on my webapp. Right now, when I send a message it takes few seconds to appear in the repeating group so the app seems slow.

What i’am trying to do is to “push” the message in the repeating group on the client side directly when the user hit “enter”. So that he’ll thinks the message has been sent even if bubble is still working on it server side.

But I didn’t find any way to do it.

Anyone has a hack to do it ?

Thanks a lot :slight_smile:

Hi there, @dpy.ludovic… just a thought (and maybe not a good one), but maybe you could set a custom state to “hold” the message when the user hits enter, and you could have a hidden element that shows the custom state’s value. You would then need a way to clear the custom state when the message is available in the repeating group, and I’m guessing you could come up with something there.

Anyway, like I said, just a thought.

Best…
Mike