# "Who's online" widget in Discourse - my version

**URL:** <https://meta.discourse.org/t/whos-online-widget-in-discourse-my-version/31722>\
**Category:** Marketplace\
**Tags:** wordpress\
**Created:** [Agosto 4, 2015, 2:25am UTC](https://meta.discourse.org/t/whos-online-widget-in-discourse-my-version/31722 "2015-08-04T02:25:06Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)\
**Post date:** [Agosto 4, 2015, 9:25am UTC](https://meta.discourse.org/t/whos-online-widget-in-discourse-my-version/31722/9 "2015-08-04T09:25:17Z")

</div>

> [@sam](#):
>
> Presense … correctly… is actually a tricky problem.

Exactly! That’s why I went the easy-way with the hope that sooner or later there will be a complete sophisticated plugin for that done the right way.

No doubt my solution is dirty. But I got it working in \< 2 hours - not comparable with outsourcing to a Ruby developer for at least a few days designing and coding at a rate close to $100/hour, as Jeff once mentioned.

* * *

**UPD.** Querying for online presence is enough at a rate of once every few minutes, so a simple Ajax request should suffice for most small and medium forums. The API results are cached in WordPress, so if multiple clients query the WordPress API Endpoint, this does not mean there will be the same number of additional HTTP calls to the Discourse server.

---

_[View the full topic](https://meta.discourse.org/t/whos-online-widget-in-discourse-my-version/31722)._
