# Chat inside of an App

**URL:** <https://forums.fusetools.com/t/chat-inside-of-an-app/2574>\
**Category:** How-to Discussions\
**Created:** [February 19, 2017, 3:32am UTC](https://forums.fusetools.com/t/chat-inside-of-an-app/2574 "2017-02-19T03:32:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![david.grossman1234](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@david.grossman1234](https://forums.fusetools.com/u/david.grossman1234)\
**Post date:** [February 19, 2017, 3:32am UTC](https://forums.fusetools.com/t/chat-inside-of-an-app/2574/1 "2017-02-19T03:32:22Z")

</div>

I have written a fun test game to get the hang of Fuse and I want to allow users to chat during the game. I can see Fuse easily can use javascript to talk to a server, but I don’t see how to implement an event driven message to Fuse. I’d rather not have javascript polling and waiting for a message.

Thanks in advance for any help.

---

<div class="post-metadata">

**Author:** ![Anders\_Bondehagen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_bondehagen/32/98_2.png) [@Anders\_Bondehagen](https://forums.fusetools.com/u/Anders_Bondehagen)\
**Post date:** [February 20, 2017, 9:28am UTC](https://forums.fusetools.com/t/chat-inside-of-an-app/2574/2 "2017-02-20T09:28:28Z")

</div>

That depends on your server. You could use push notifications, sockets, websockets or long polling. If I was going to make something from scratch I would probably use a combination. Push notification when in the background and then do a http fetch (to sync latest) when going into foreground while waiting for websockets to reconnect.

---

<div class="post-metadata">

**Author:** ![david.grossman1234](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@david.grossman1234](https://forums.fusetools.com/u/david.grossman1234)\
**Post date:** [February 23, 2017, 3:17am UTC](https://forums.fusetools.com/t/chat-inside-of-an-app/2574/3 "2017-02-23T03:17:22Z")

</div>

Is there any example you could point me to for any of this – even the roughest skeleton would be great.
