@liveblocks/core 3.15.1-rc3 → 3.15.1

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/dist/index.d.cts CHANGED
@@ -3782,6 +3782,7 @@ type PrivateRoomApi = {
3782
3782
  simulate: {
3783
3783
  explicitClose(event: IWebSocketCloseEvent): void;
3784
3784
  rawSend(data: string): void;
3785
+ incomingMessage(data: string): void;
3785
3786
  };
3786
3787
  attachmentUrlsStore: BatchStore<string, string>;
3787
3788
  };
package/dist/index.d.ts CHANGED
@@ -3782,6 +3782,7 @@ type PrivateRoomApi = {
3782
3782
  simulate: {
3783
3783
  explicitClose(event: IWebSocketCloseEvent): void;
3784
3784
  rawSend(data: string): void;
3785
+ incomingMessage(data: string): void;
3785
3786
  };
3786
3787
  attachmentUrlsStore: BatchStore<string, string>;
3787
3788
  };
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ var __export = (target, all) => {
6
6
 
7
7
  // src/version.ts
8
8
  var PKG_NAME = "@liveblocks/core";
9
- var PKG_VERSION = "3.15.1-rc3";
9
+ var PKG_VERSION = "3.15.1";
10
10
  var PKG_FORMAT = "esm";
11
11
 
12
12
  // src/dupe-detection.ts
@@ -10298,9 +10298,10 @@ function createRoom(options, config) {
10298
10298
  getOthers_forDevTools: () => others_forDevTools.get(),
10299
10299
  // prettier-ignore
10300
10300
  simulate: {
10301
- // These exist only for our E2E testing app
10301
+ // These exist only for our E2E testing app and unit tests
10302
10302
  explicitClose: (event) => managedSocket._privateSendMachineEvent({ type: "EXPLICIT_SOCKET_CLOSE", event }),
10303
- rawSend: (data) => managedSocket.send(data)
10303
+ rawSend: (data) => managedSocket.send(data),
10304
+ incomingMessage: (data) => handleServerMessage(new MessageEvent("message", { data }))
10304
10305
  },
10305
10306
  attachmentUrlsStore: httpClient.getOrCreateAttachmentUrlsStore(roomId)
10306
10307
  },