# When to Trigger "Open Channel" With Xano Realtime

**URL:** <https://community.weweb.io/t/when-to-trigger-open-channel-with-xano-realtime/13862>\
**Category:** Ask us anything\
**Created:** [October 10, 2024, 6:31pm UTC](https://community.weweb.io/t/when-to-trigger-open-channel-with-xano-realtime/13862 "2024-10-10T18:31:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/mark/32/4163_2.png) [@mark](https://community.weweb.io/u/mark)\
**Post date:** [October 10, 2024, 6:31pm UTC](https://community.weweb.io/t/when-to-trigger-open-channel-with-xano-realtime/13862/1 "2024-10-10T18:31:40Z")

</div>

Hi, I want to connect the Xano realtime with each user having a dynamic nested channel based on their user ID. When should I trigger the “Open Channel”?

I was thinking about on App Load, but then wouldn’t it fail because the login screen is technically loading the app too?

So then do I load it on page load? It will fail on the login screen but will connect on all others I assume?

Or is there a better way of doing it? I want to make sure they are all connected to their own channel but also make sure that if they leave their browser window open for a long time and it goes stale, that they don’t lose connection, or at least that a refresh will reconnect it.

I’m sure there’s something I’m missing here.

---

<div class="post-metadata">

**Author:** ![DanielL](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/daniell/32/13398_2.png) [@DanielL](https://community.weweb.io/u/DanielL)\
**Post date:** [October 14, 2024, 11:17am UTC](https://community.weweb.io/t/when-to-trigger-open-channel-with-xano-realtime/13862/2 "2024-10-14T11:17:45Z")

</div>

Hello @mark

You would typically do this on successful login, or when entering a specific page or section that requires real-time updates, or on a specific user action, like clicking a “Connect” or “Start Chat” button. Refresh the page will reopen the channel only if you have an open channel action in your on app/page load workflow.
