@liveblocks/client 0.14.2 → 0.14.3

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.
package/lib/cjs/room.js CHANGED
@@ -664,6 +664,11 @@ See v0.13 release notes for more information.
664
664
  if (state.connection.state === "connecting") {
665
665
  updateConnection(Object.assign(Object.assign({}, state.connection), { state: "open" }));
666
666
  state.numberOfRetry = 0;
667
+ // Re-broadcast the user presence during a reconnect.
668
+ if (state.lastConnectionId !== undefined) {
669
+ state.buffer.presence = state.me;
670
+ tryFlushing();
671
+ }
667
672
  state.lastConnectionId = state.connection.id;
668
673
  if (state.root) {
669
674
  state.buffer.messages.push({ type: live_1.ClientMessageType.FetchStorage });
package/lib/esm/room.js CHANGED
@@ -661,6 +661,11 @@ See v0.13 release notes for more information.
661
661
  if (state.connection.state === "connecting") {
662
662
  updateConnection(Object.assign(Object.assign({}, state.connection), { state: "open" }));
663
663
  state.numberOfRetry = 0;
664
+ // Re-broadcast the user presence during a reconnect.
665
+ if (state.lastConnectionId !== undefined) {
666
+ state.buffer.presence = state.me;
667
+ tryFlushing();
668
+ }
664
669
  state.lastConnectionId = state.connection.id;
665
670
  if (state.root) {
666
671
  state.buffer.messages.push({ type: ClientMessageType.FetchStorage });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@liveblocks/client",
3
- "version": "0.14.2",
3
+ "version": "0.14.3",
4
4
  "description": "",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",