@yorkie-js/sdk 0.7.5 → 0.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -960,6 +960,7 @@ export declare class Client {
960
960
  private taskQueue;
961
961
  private processing;
962
962
  private keepalive;
963
+ private deactivating;
963
964
  /**
964
965
  * @param rpcAddr - the address of the RPC server.
965
966
  * @param opts - the options of the client.
@@ -3079,6 +3080,20 @@ declare class Document_2<R, P extends Indexable = Indexable> implements Attachab
3079
3080
  * `removeOnlineClient` removes the clientID from the online client set.
3080
3081
  */
3081
3082
  removeOnlineClient(clientID: ActorID): void;
3083
+ /**
3084
+ * `reconcilePresence` compares the previous and current state of a client's
3085
+ * presence/online status and returns the appropriate event to emit.
3086
+ *
3087
+ * For remote clients, "online" means the client is in onlineClients.
3088
+ * For self, "online" means the document status is Attached.
3089
+ *
3090
+ * State transition table:
3091
+ * (!hadP || !wasOn) → (hasP && isOn) : watched (remote) or presence-changed (self)
3092
+ * (hadP && wasOn) → (hasP && isOn) : presence-changed
3093
+ * (hadP && wasOn) → (!hasP || !isOn): unwatched (remote only)
3094
+ * otherwise : no event (waiting)
3095
+ */
3096
+ private reconcilePresence;
3082
3097
  /**
3083
3098
  * `hasPresence` returns whether the given clientID has a presence or not.
3084
3099
  */