Use subscribers to detect state change and emit those out to other participants. Use middleware to register the command listener.
7 lines
238 B
JavaScript
7 lines
238 B
JavaScript
/**
|
|
* The (name of the) command which transports the state (represented by
|
|
* {State} for the local state at the time of this writing) of a {FollowMe}
|
|
* (instance) between participants.
|
|
*/
|
|
export const FOLLOW_ME_COMMAND = 'follow-me';
|