# Message-bus is duplicating headers in Discourse chat

**URL:** https://meta.discourse.org/t/message-bus-is-duplicating-headers-in-discourse-chat/294607
**Category:** Development
**Tags:** chat, rest-api
**Created:** [February 7, 2024, 10:12pm UTC](https://meta.discourse.org/t/message-bus-is-duplicating-headers-in-discourse-chat/294607 "2024-02-07T22:12:20Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![jandres](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jandres/32/130933_2.png) [@jandres](https://meta.discourse.org/u/jandres)
#### Post date: [February 13, 2024, 2:05am UTC](https://meta.discourse.org/t/message-bus-is-duplicating-headers-in-discourse-chat/294607/6 "2024-02-13T02:05:38Z")

</div>

I wonder how this user was able to make it possible.

> [@How discourse stays online (Message Bus, Faye, Long Polling)](https://meta.discourse.org/t/how-discourse-stays-online-message-bus-faye-long-polling/3238/22):
>
> Yeah, the whole backend is powered by message\_bus. The android/ios client long-polls. Not sure if this is the best use of message\_bus, but It works w/o the added complexity of web sockets. The major win is that it fits in our existing rails stack. The only disadvantage i’ve come across so far is that I can’t find an elegant way to support the typing indicator. [http://www.eggie5.com/58-real-time-messenging-w-ruby-ios-android](http://www.eggie5.com/58-real-time-messenging-w-ruby-ios-android)

He publish a youtube video [here](https://youtu.be/5uNg9HopoGs?si=AebJZGi01dyRHhwq) showing his progress in multiple devices.

There should be a way to user the message\_bus gem from outside the discourse site.

Thanks a lot if you can juste guide me a little bit more, or give some idea

---

_[View the full topic](https://meta.discourse.org/t/message-bus-is-duplicating-headers-in-discourse-chat/294607)._
