# Long Polling Message Bus Notifications from React Application

**URL:** <https://meta.discourse.org/t/long-polling-message-bus-notifications-from-react-application/142722>\
**Category:** Development\
**Created:** [February 26, 2020, 9:41pm UTC](https://meta.discourse.org/t/long-polling-message-bus-notifications-from-react-application/142722 "2020-02-26T21:41:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [February 27, 2020, 10:29am UTC](https://meta.discourse.org/t/long-polling-message-bus-notifications-from-react-application/142722/2 "2020-02-27T10:29:56Z")

</div>

> [@StanLindsey](#):
>
> subscribing to message bus in a modern javascript application

Discourse **is** a modern javascript application 😛

The best way is to use the message-bus library. ~~Currently it does depend on JQuery, but if you would like to submit a pull request to remove that dependency, I’m sure it would be considered.~~

> [@StanLindsey](#):
>
> cannot find documentation for the channels available to subscribe to or what the responses are.

Messagebus is only intended to be used within Discourse, it’s not really a ‘public’ API. The best source of information will be the javascript files in the codebase, which you already found 👍

---

_[View the full topic](https://meta.discourse.org/t/long-polling-message-bus-notifications-from-react-application/142722)._
