Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

post offline #59

Open
wizzard0 opened this issue Jun 21, 2017 · 0 comments
Open

post offline #59

wizzard0 opened this issue Jun 21, 2017 · 0 comments

Comments

@wizzard0
Copy link

Use case: post a message to chat when the user is offline

Intended UX:

  • user posts a message
  • message appears in the view immediately with a "..." or spinner indicator
  • when the server acknowledges the message, the indicator changes to check mark (or simply disappears)
  • server can explicitly reject the request (403 etc) or it might expire after a specified timeout

Implementation options:

  1. "virtual" network.request (backend has to make sure repeated requests are ignored), with return options like "success","failure" (500 etc), "offline" and exponential backoff (so app wont spam the server in case of error); but the problem is that user should also see its message together with server-sent ones (with a spinner indicator or something)
  2. could be currently awkwardly worked around with $global but really there should be some API support.
  3. another option is some kind of an object synchronized with server

I could help with drafting the API for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant