For my extension I need to get every new message in the chat.
How can I do that?
I thought about doing this with js and doing a loop and getting all the messages in the chat (because I have access to the page source), but thats seems wrong is there any better way of doing that?