Skip to content

Add global indicator based on Pusher status #85

Closed

Description

@quinthar

Show if we are currently connected to Pusher in order to correctly set the expectations of the user for what functionality will work.

Activity

  1. added this to the Alpha Launch milestone on Aug 12, 2020
  2. changed the title [-]Add global online/offline indicator based on Pusher status[/-] [+]Add singular online/offline state, and global indicator based on Pusher status[/+] on Aug 12, 2020
  3. tgolen commented on Aug 12, 2020

    @tgolen
    Contributor

    @shawnborton what ideas do you have for an online/offline indicator? Would a green/red dot in one of the corners be OK?

    @quinthar Another thing we need to figure out is fix the pusher-reconnect issue. I think what is happening is that the AuthToken that pusher uses for authentication expires, and then when you come back from being away, pusher attempts to reconnect with the expired authToken, and is denied. Unfortunately, I don't think there is any easy way to get Pusher to reauthenticate with a new authToken (because you have to manually re-bind all the channel subscriptions). I think a better idea is to use an authToken that doesn't expire for a really long time.

    @AndrewGable How does that work with the infinite sessions. Is that an authToken that doesn't expire for a long time? Can we use that authToken for pusher?

    Also, do we still need AUTH_TOKEN_EXPIRATION_TIME which is set to 90 minutes?

  4. shawnborton commented on Aug 12, 2020

    @shawnborton
    Contributor

    Where exactly would the indicator go? I don't think we should have a persistent green dot for "online" but rather only cover the case where you are offline.

    When I go offline and open up something like Gmail, I just have a little bottom-docked message saying something like "There appears to be no connection"

  5. tgolen commented on Aug 12, 2020

    @tgolen
    Contributor
  6. shawnborton commented on Aug 12, 2020

    @shawnborton
    Contributor

    Yeah, I could get down with that... maybe even a gray dot overlapping the user icon or something? If you can wire it up and give me good testing instructions, I am happy to style everything!

  7. tgolen commented on Aug 13, 2020

    @tgolen
    Contributor

    Cool, I just pushed up a PR #85 that adds the indicator, so it's already for your styling.

  8. quinthar commented on Aug 15, 2020

    @quinthar
    ContributorAuthor

    Given that the PR that adds a visual indicator is linked and will close this issue, I'm going to clarify the OP that this is just about a visual indicator. I think we should also have a "singular" offline state (ie, we shouldn't attempt to send messages when not connected to Pusher), but now that we don't the "trying to send..." spinner, this isn't nearly so visible.

  9. changed the title [-]Add singular online/offline state, and global indicator based on Pusher status[/-] [+]Add global indicator based on Pusher status[/+] on Aug 15, 2020
  10. added
    ReviewingHas a PR in review
    and removed on Aug 15, 2020
  11. added a commit that references this issue on Apr 18, 2024
  12. OSBotify commented on Apr 23, 2024

    @OSBotify
    Contributor

    🚀 Deployed to production by https://github.com/mountiny in version: 1.4.64-6 🚀

    platform result
    🤖 android 🤖 success ✅
    🖥 desktop 🖥 success ✅
    🍎 iOS 🍎 success ✅
    🕸 web 🕸 success ✅
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ReviewingHas a PR in review

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions