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
My code is below. What I am trying to do is subscribe to a graphql stream and update the lastMessageTime and lastMessageID after each time I get back messages. I then send those to the server in the stream in order to get new messages only.
I am running into a few issues that lead me to believe that I should not be getting the SubscriptionOptions based off of the state variables and instead somehow be doing this in an invariant way, but that doesn't seem to make sense because how would the server then know what ID and Time to use to return results?
This discussion was converted from issue #1336 on July 20, 2023 12:03.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My code is below. What I am trying to do is subscribe to a graphql stream and update the lastMessageTime and lastMessageID after each time I get back messages. I then send those to the server in the stream in order to get new messages only.
I am running into a few issues that lead me to believe that I should not be getting the SubscriptionOptions based off of the state variables and instead somehow be doing this in an invariant way, but that doesn't seem to make sense because how would the server then know what ID and Time to use to return results?
Help?
Beta Was this translation helpful? Give feedback.
All reactions