So, you integrate Discourse and WordPress.
Discourse currently doesn't have a "who's online" widget.
Still, many people want it!
With Twig Anything, there's a simple solution outlined in the following tutorial:
This solution has been used for more than 6 month for a Ukrainian goat farmers community that I run. See this screenshot for how it looks: