You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
"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)
could be currently awkwardly worked around with $global but really there should be some API support.
another option is some kind of an object synchronized with server
I could help with drafting the API for this.
The text was updated successfully, but these errors were encountered:
Use case: post a message to chat when the user is offline
Intended UX:
Implementation options:
I could help with drafting the API for this.
The text was updated successfully, but these errors were encountered: