Keep chat box on while redirecting to other pages


#1

I’ve a chat box in my footer and all is working fine.
But, when I redirect to another page my chat box is closing, I want my chat box to keep as it is while moving to other pages?

Is there any way to do this?

Any help appreciated, thanks.


#2

Set a session with “keepOpen” state and your chatbox can retrieve the value from it?


#3

If you are using iron router, this is easy, just put the chatbox outside the yield region and it will stay intact across page transitions.

<template name="layout">
  <header>My Cool App</header>
  <main>{{>yield}}</main>
  <footer>{{>chatBox}}</footer>
</template>

#4

I’m looking to do the same thing. Can you share a little code or a blog post(s) to get me started?


#5

@serkandurusoy’s answer should be the easiest solution and works with flow-router and flow-layout as well.


#6

Thanks. What I meant was I’m looking to integrate the chat feature into my application like you did. Can you share some of the chat code to get me started?