microsoft / live-share-sdk

A framework for building collaborative Microsoft Teams and M365 experiences.
Other
95 stars 31 forks source link

Target signals to specific clients #795

Closed ryanbliss closed 2 months ago

ryanbliss commented 2 months ago

Non-targeted behavior (existing): This is the behavior when no targetClientId is provided. All remote clients will receive the event.

image

Target client behavior: This is the behavior when targetClientId is provided (left side is targeting top-right). Notice how the top-right received the most recent message sent by the top-left.

image
ryanbliss commented 2 months ago

Looks good, would add a couple unit tests

Added UTs to LiveEvent and LiveObjectSynchronizer, which should give us more or less complete coverage for the scenarios at hand.