-
Notifications
You must be signed in to change notification settings - Fork 71
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
Delay ScheduleSend if OnMessage is in progress #88
Comments
I might be missing something, but wouldn't it be useful to add an OnMessageDone callback that will call ScheduleSend (and remove it from the OnMessage callback)? |
That will make it the responsibility of the user. I would prefer that the Client implementation is responsible for this. |
One way to implement this is to set a flag in |
Thanks @tigrannajaryan, I'll be happy to take this one |
OpAMPClient functions which update the state normally call ScheduleSend to deliver the changed state to the Server. When this happens while OnMessage callback is active we want to delay calling ScheduleSend and only call it once when OnMessage handler returns. This will avoid unnecessary messages going to the server.
The text was updated successfully, but these errors were encountered: