Method signature CoDoingClient.broadcastStateUpdate

Broadcasts state to all other current participants, and is the default state for any participant until some other state is broadcast.

Note: This shared state is eventually consistent across participants. For predictable behavior, this binary state should be complete, not partial, as the Live Sharing SDK doesn't provide guarantees around the delivery of individual messages -- only eventual consistency.

Note: In a race condition where two participants call this method simultaneously, the Live Sharing SDK selects a canonical winning update. The losing update might or might not be applied to participants, but the winning update is always applied later.


broadcastStateUpdate(newState: CoDoingState): void;


Optional No


Name Type Optional Description
newState CoDoingState No