@estuary-ai/sdk 0.1.30 → 0.1.31
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.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -27166,7 +27166,19 @@ var init_livekit_voice = __esm({
|
|
|
27166
27166
|
err
|
|
27167
27167
|
);
|
|
27168
27168
|
}
|
|
27169
|
-
|
|
27169
|
+
await new Promise((resolve) => {
|
|
27170
|
+
const timeout = setTimeout(() => {
|
|
27171
|
+
this.socketManager.off("livekitConnected", onReady);
|
|
27172
|
+
this.logger.warn("Timed out waiting for livekit_ready, proceeding");
|
|
27173
|
+
resolve();
|
|
27174
|
+
}, 5e3);
|
|
27175
|
+
const onReady = () => {
|
|
27176
|
+
clearTimeout(timeout);
|
|
27177
|
+
resolve();
|
|
27178
|
+
};
|
|
27179
|
+
this.socketManager.once("livekitConnected", onReady);
|
|
27180
|
+
this.socketManager.emitEvent("livekit_join", { room: tokenData.room });
|
|
27181
|
+
});
|
|
27170
27182
|
this._isActive = true;
|
|
27171
27183
|
this.logger.debug("LiveKit voice started");
|
|
27172
27184
|
}
|