# How to get live messages from ts-sdk

**URL:** <https://forum.social.plus/t/how-to-get-live-messages-from-ts-sdk/654>\
**Category:** Web\
**Created:** [February 28, 2023, 11:55am UTC](https://forum.social.plus/t/how-to-get-live-messages-from-ts-sdk/654 "2023-02-28T11:55:54Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![cijin](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@cijin](https://forum.social.plus/u/cijin)\
**Post date:** [March 2, 2023, 9:41am UTC](https://forum.social.plus/t/how-to-get-live-messages-from-ts-sdk/654/7 "2023-03-02T09:41:54Z")

</div>

@sarathdixit

Hey, there’s two ways around it.

1. You can use `liveMessage` instead. It will handle any updates to a message. Also, will always only return you the latest message, when multiple updates are recieved.

2. You could compare the the updated payload’s `updatedAt` time with the current objects `updatedAt` time and use the latest one

As, for creator name and avatar, it kind of does not make sense to make it part of the `messagePayload`. There is however the `creatorId` which you could use to retrieve the required info.

---

_[View the full topic](https://forum.social.plus/t/how-to-get-live-messages-from-ts-sdk/654)._
