Online and Typing Indicators

How do I add a typing and online indicator, like in @templardesign’s Web Chat PWA Template?

:man_mage: