Skip to content

batch notifications #649

@jba

Description

@jba

The server should batch notifications to the client, to avoid a flurry of messages when many tools, etc. are added at once.

This actually happens in practice: see #73 (comment).

All AddTool notifications are the same (the params are empty), so we can count them and send one when the count reaches a threshold.
The same is true for all the other add and remove notifications.

This should happen in Server.changeAndNotify.

Also, we should asynchronously and periodically send notifications for any non-zero counts. The period should be fairly short (50 ms?) So that single calls to AddTool, etc. are notified promptly.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions