@lakutata/webrtc 3.1.5 → 3.1.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.
- package/dist/cjs/lib/ice/dns/lookup.js +11 -3
- package/dist/cjs/peer/PeerThreads.js +3 -0
- package/dist/cjs/sfu/SFUWorkerCode.js +1 -1
- package/dist/cjs/sfu/SFUWorkers.js +3 -1
- package/dist/cjs/turn/TURNWorkers.js +3 -1
- package/dist/esm/lib/ice/dns/lookup.js +11 -3
- package/dist/esm/peer/PeerThreads.js +3 -0
- package/dist/esm/sfu/SFUWorkerCode.js +1 -1
- package/dist/esm/sfu/SFUWorkers.js +3 -1
- package/dist/esm/turn/TURNWorkers.js +3 -1
- package/package.json +3 -3
|
@@ -445,7 +445,9 @@ export class SFUWorkers {
|
|
|
445
445
|
//Running once it says so: a thread failing to start is not started again
|
|
446
446
|
slot.ran = false;
|
|
447
447
|
const resourceLimits = this.#host.resourceLimits;
|
|
448
|
-
|
|
448
|
+
//Without the options of the command line of the process, which a worker inherits: with --input-type=module, its code
|
|
449
|
+
//(CommonJS) would run as an ES module
|
|
450
|
+
const worker = new Worker(sfuWorkerCode, { eval: true, execArgv: [], workerData: this.#data[slot.index], ...resourceLimits ? { resourceLimits: resourceLimits } : {} });
|
|
449
451
|
slot.worker = worker;
|
|
450
452
|
slot.channel = new SFUWorkerChannel(worker, (message) => this.#handle(slot, message));
|
|
451
453
|
slot.ready = new Promise((resolve, reject) => {
|
|
@@ -161,7 +161,9 @@ export class TURNWorkers {
|
|
|
161
161
|
port: this.#port,
|
|
162
162
|
...data.options.tls && this.#tlsPort !== undefined ? { tls: { ...data.options.tls, port: this.#tlsPort } } : {}
|
|
163
163
|
};
|
|
164
|
-
|
|
164
|
+
//Without the options of the command line of the process, which a worker inherits: with --input-type=module, its code
|
|
165
|
+
//(CommonJS) would run as an ES module
|
|
166
|
+
const worker = new Worker(turnWorkerCode, { eval: true, execArgv: [], workerData: { ...data, options: options } });
|
|
165
167
|
slot.worker = worker;
|
|
166
168
|
if (hasDebugHandler())
|
|
167
169
|
worker.postMessage({ type: 'debug', enabled: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lakutata/webrtc",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.6",
|
|
4
4
|
"description": "WebRTC for the lakutata framework, in TypeScript without native code: the signaling, a STUN/TURN server, a media server (SFU) for rooms of many members, WHIP publishing and WHEP playback, peer connections with data channels and audio and video tracks in Node.js, Electron and Bun, the service actions of an application called through data channels, and a browser client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lakutata",
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
"THIRD_PARTY_NOTICES.md"
|
|
89
89
|
],
|
|
90
90
|
"peerDependencies": {
|
|
91
|
-
"@lakutata/core": "~3.1.
|
|
92
|
-
"@lakutata/entrypoint": "~3.1.
|
|
91
|
+
"@lakutata/core": "~3.1.6",
|
|
92
|
+
"@lakutata/entrypoint": "~3.1.6",
|
|
93
93
|
"ioredis": "^5.0.0",
|
|
94
94
|
"nats": "^2.29.3",
|
|
95
95
|
"socket.io-client": "^4.0.0",
|