Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Get last message from SimpleChat pod

Avatar

Level 3

Hello,

I have been reading through the simplechat, and I notice one can obtain only the entire history.

http://livedocs.adobe.com/labs/acrobatcom/com/adobe/rtc/pods/SimpleChat.html

Would it be possible somehow to get only the last message and the username? Kind of like a polling feature, so that I can have access to each message one by one, such that when a user types the message and presses enter, I can have access to it?

If not I guess this would be a feature request

PS: I just noticed the SimpleChatModel in the examples, which has this exact feature.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi there,

You can always listen to the model of the component - the historyChange

event will fire a ChatEvent every time the history changes, with the latest

message.

hope that helps

nigel

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi there,

You can always listen to the model of the component - the historyChange

event will fire a ChatEvent every time the history changes, with the latest

message.

hope that helps

nigel