mediasoup 3.19.20 → 3.19.22
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/node/lib/Worker.d.ts +1 -0
- package/node/lib/Worker.d.ts.map +1 -1
- package/node/lib/Worker.js +14 -0
- package/node/lib/fbs/consumer/degrade-request.d.ts +30 -0
- package/node/lib/fbs/consumer/degrade-request.d.ts.map +1 -0
- package/node/lib/fbs/consumer/degrade-request.js +91 -0
- package/node/lib/fbs/consumer/enable-delay-and-loss-request.d.ts +24 -0
- package/node/lib/fbs/consumer/enable-delay-and-loss-request.d.ts.map +1 -0
- package/node/lib/fbs/consumer/enable-delay-and-loss-request.js +69 -0
- package/node/lib/fbs/producer/degrade-request.d.ts +30 -0
- package/node/lib/fbs/producer/degrade-request.d.ts.map +1 -0
- package/node/lib/fbs/producer/degrade-request.js +91 -0
- package/node/lib/fbs/worker/close-notification.d.ts +18 -0
- package/node/lib/fbs/worker/close-notification.d.ts.map +1 -0
- package/node/lib/fbs/worker/close-notification.js +45 -0
- package/node/lib/fbs/worker/close-request.d.ts +18 -0
- package/node/lib/fbs/worker/close-request.d.ts.map +1 -0
- package/node/lib/fbs/worker/close-request.js +45 -0
- package/node/lib/fbs/worker/close-worker-notification.d.ts +18 -0
- package/node/lib/fbs/worker/close-worker-notification.d.ts.map +1 -0
- package/node/lib/fbs/worker/close-worker-notification.js +45 -0
- package/package.json +4 -2
- package/worker/fuzzer/src/RTC/FuzzerDtlsTransport.cpp +9 -3
- package/worker/fuzzer/src/RTC/RTP/FuzzerRtpStreamSend.cpp +9 -1
- package/worker/include/Channel/ChannelMessageRegistrator.hpp +39 -0
- package/worker/include/Channel/ChannelMessageRegistratorInterface.hpp +32 -0
- package/worker/include/Channel/ChannelSocket.hpp +1 -1
- package/worker/include/DepUsrSCTP.hpp +8 -7
- package/worker/include/RTC/ActiveSpeakerObserver.hpp +7 -7
- package/worker/include/RTC/AudioLevelObserver.hpp +7 -7
- package/worker/include/RTC/Consumer.hpp +3 -3
- package/worker/include/RTC/DataConsumer.hpp +3 -3
- package/worker/include/RTC/DataProducer.hpp +3 -3
- package/worker/include/RTC/DirectTransport.hpp +2 -2
- package/worker/include/RTC/DtlsTransport.hpp +8 -6
- package/worker/include/RTC/ICE/IceServer.hpp +8 -5
- package/worker/include/RTC/KeyFrameRequestManager.hpp +15 -12
- package/worker/include/RTC/NackGenerator.hpp +7 -6
- package/worker/include/RTC/PipeConsumer.hpp +1 -2
- package/worker/include/RTC/PipeTransport.hpp +2 -2
- package/worker/include/RTC/PlainTransport.hpp +2 -2
- package/worker/include/RTC/Producer.hpp +3 -3
- package/worker/include/RTC/RTP/RtpStream.hpp +7 -1
- package/worker/include/RTC/RTP/RtpStreamRecv.hpp +6 -5
- package/worker/include/RTC/RTP/RtpStreamSend.hpp +4 -1
- package/worker/include/RTC/Router.hpp +3 -3
- package/worker/include/RTC/RtpObserver.hpp +3 -3
- package/worker/include/RTC/SCTP/TODO_SCTP.md +18 -6
- package/worker/include/RTC/SCTP/association/Association.hpp +11 -8
- package/worker/include/RTC/SCTP/association/HeartbeatHandler.hpp +9 -6
- package/worker/include/RTC/SCTP/association/StreamResetHandler.hpp +37 -23
- package/worker/include/RTC/SCTP/association/TCBContext.hpp +3 -2
- package/worker/include/RTC/SCTP/association/TransmissionControlBlock.hpp +81 -8
- package/worker/include/RTC/SCTP/packet/UserData.hpp +36 -0
- package/worker/include/RTC/SCTP/packet/chunks/ForwardTsnChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/packet/chunks/IForwardTsnChunk.hpp +1 -1
- package/worker/include/RTC/SCTP/public/SctpOptions.hpp +2 -1
- package/worker/include/RTC/SCTP/tx/OutstandingData.hpp +604 -0
- package/worker/include/RTC/SCTP/tx/RetransmissionQueue.hpp +336 -0
- package/worker/include/RTC/SCTP/tx/RetransmissionTimeout.hpp +5 -4
- package/worker/include/RTC/Serializable.hpp +8 -0
- package/worker/include/RTC/SimpleConsumer.hpp +1 -2
- package/worker/include/RTC/SimulcastConsumer.hpp +1 -2
- package/worker/include/RTC/SvcConsumer.hpp +1 -2
- package/worker/include/RTC/Transport.hpp +8 -8
- package/worker/include/RTC/TransportCongestionControlClient.hpp +8 -5
- package/worker/include/RTC/TransportCongestionControlServer.hpp +8 -5
- package/worker/include/RTC/WebRtcServer.hpp +3 -3
- package/worker/include/RTC/WebRtcTransport.hpp +3 -3
- package/worker/include/Shared.hpp +40 -0
- package/worker/include/SharedInterface.hpp +44 -0
- package/worker/include/Utils.hpp +6 -0
- package/worker/include/Worker.hpp +3 -3
- package/worker/include/common.hpp +1 -1
- package/worker/include/handles/BackoffTimerHandle.hpp +27 -65
- package/worker/include/handles/BackoffTimerHandleInterface.hpp +116 -0
- package/worker/include/handles/TimerHandle.hpp +36 -20
- package/worker/include/handles/TimerHandleInterface.hpp +43 -0
- package/worker/meson.build +21 -4
- package/worker/meson_options.txt +2 -1
- package/worker/mocks/include/Channel/MockChannelMessageRegistrator.hpp +45 -0
- package/worker/mocks/include/MockShared.hpp +43 -0
- package/worker/mocks/src/Channel/MockChannelMessageRegistrator.cpp +128 -0
- package/worker/mocks/src/MockShared.cpp +26 -0
- package/worker/scripts/clang-scripts.mjs +4 -1
- package/worker/src/Channel/ChannelMessageRegistrator.cpp +125 -0
- package/worker/src/Channel/ChannelSocket.cpp +1 -1
- package/worker/src/DepUsrSCTP.cpp +10 -4
- package/worker/src/RTC/ActiveSpeakerObserver.cpp +7 -7
- package/worker/src/RTC/AudioLevelObserver.cpp +12 -10
- package/worker/src/RTC/Consumer.cpp +23 -20
- package/worker/src/RTC/DataConsumer.cpp +11 -11
- package/worker/src/RTC/DataProducer.cpp +3 -3
- package/worker/src/RTC/DirectTransport.cpp +16 -16
- package/worker/src/RTC/DtlsTransport.cpp +4 -4
- package/worker/src/RTC/ICE/IceServer.cpp +4 -3
- package/worker/src/RTC/KeyFrameRequestManager.cpp +15 -15
- package/worker/src/RTC/NackGenerator.cpp +3 -3
- package/worker/src/RTC/PipeConsumer.cpp +5 -4
- package/worker/src/RTC/PipeTransport.cpp +3 -3
- package/worker/src/RTC/PlainTransport.cpp +10 -9
- package/worker/src/RTC/Producer.cpp +30 -28
- package/worker/src/RTC/RTCP/FeedbackPsRpsi.cpp +1 -2
- package/worker/src/RTC/RTP/RtpStream.cpp +9 -2
- package/worker/src/RTC/RTP/RtpStreamRecv.cpp +5 -4
- package/worker/src/RTC/RTP/RtpStreamSend.cpp +5 -2
- package/worker/src/RTC/Router.cpp +3 -3
- package/worker/src/RTC/RtpObserver.cpp +2 -1
- package/worker/src/RTC/SCTP/association/Association.cpp +94 -114
- package/worker/src/RTC/SCTP/association/HeartbeatHandler.cpp +27 -21
- package/worker/src/RTC/SCTP/association/StreamResetHandler.cpp +52 -55
- package/worker/src/RTC/SCTP/association/TransmissionControlBlock.cpp +144 -25
- package/worker/src/RTC/SCTP/packet/chunks/ForwardTsnChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/packet/chunks/IForwardTsnChunk.cpp +2 -2
- package/worker/src/RTC/SCTP/tx/OutstandingData.cpp +905 -0
- package/worker/src/RTC/SCTP/tx/RetransmissionQueue.cpp +799 -0
- package/worker/src/RTC/SCTP/tx/RetransmissionTimeout.cpp +1 -1
- package/worker/src/RTC/SctpAssociation.cpp +1 -1
- package/worker/src/RTC/SimpleConsumer.cpp +8 -7
- package/worker/src/RTC/SimulcastConsumer.cpp +11 -10
- package/worker/src/RTC/SvcConsumer.cpp +11 -10
- package/worker/src/RTC/Transport.cpp +44 -41
- package/worker/src/RTC/TransportCongestionControlClient.cpp +4 -2
- package/worker/src/RTC/TransportCongestionControlServer.cpp +4 -3
- package/worker/src/RTC/WebRtcServer.cpp +5 -4
- package/worker/src/RTC/WebRtcTransport.cpp +39 -26
- package/worker/src/Shared.cpp +35 -0
- package/worker/src/Worker.cpp +10 -23
- package/worker/src/handles/BackoffTimerHandle.cpp +11 -16
- package/worker/src/handles/TimerHandle.cpp +5 -4
- package/worker/src/lib.cpp +14 -1
- package/worker/tasks.py +1 -1
- package/worker/test/include/RTC/ICE/iceCommon.hpp +1 -0
- package/worker/test/include/RTC/RTP/rtpCommon.hpp +1 -0
- package/worker/test/include/RTC/SCTP/sctpCommon.hpp +6 -0
- package/worker/test/src/RTC/RTP/TestRtpStreamRecv.cpp +12 -5
- package/worker/test/src/RTC/RTP/TestRtpStreamSend.cpp +34 -23
- package/worker/test/src/RTC/SCTP/tx/TestOutstandingData.cpp +1196 -0
- package/worker/test/src/RTC/SCTP/tx/TestRetransmissionTimeout.cpp +33 -33
- package/worker/test/src/RTC/TestKeyFrameRequestManager.cpp +14 -6
- package/worker/test/src/RTC/TestNackGenerator.cpp +6 -2
- package/worker/test/src/RTC/TestSimpleConsumer.cpp +6 -10
- package/worker/test/src/RTC/TestTransportCongestionControlServer.cpp +9 -2
- package/worker/test/src/Utils/TestByte.cpp +98 -0
- package/worker/include/ChannelMessageRegistrator.hpp +0 -30
- package/worker/include/RTC/Shared.hpp +0 -23
- package/worker/src/ChannelMessageRegistrator.cpp +0 -119
- package/worker/src/RTC/Shared.cpp +0 -23
package/node/lib/Worker.d.ts
CHANGED
|
@@ -30,5 +30,6 @@ export declare class WorkerImpl<WorkerAppData extends AppData = AppData> extends
|
|
|
30
30
|
createRouter<RouterAppData extends AppData = AppData>({ mediaCodecs, appData, }?: RouterOptions<RouterAppData>): Promise<Router<RouterAppData>>;
|
|
31
31
|
private workerDied;
|
|
32
32
|
private handleListenerError;
|
|
33
|
+
private onSignal;
|
|
33
34
|
}
|
|
34
35
|
//# sourceMappingURL=Worker.d.ts.map
|
package/node/lib/Worker.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Worker.d.ts","sourceRoot":"","sources":["../src/Worker.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,KAAK,EACX,MAAM,EACN,cAAc,EACd,wBAAwB,EACxB,mBAAmB,EACnB,U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 -192,6 +192,13 @@ class WorkerImpl extends enhancedEvents_1.EnhancedEventEmitter {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
});
|
|
195
|
+
// NOTE: Avoid "Possible EventEmitter memory leak detected" Node warning.
|
|
196
|
+
const processListenerCount = process.getMaxListeners();
|
|
197
|
+
if (processListenerCount >= 10) {
|
|
198
|
+
process.setMaxListeners(processListenerCount + 2);
|
|
199
|
+
}
|
|
200
|
+
process.once('SIGINT', this.onSignal);
|
|
201
|
+
process.once('SIGTERM', this.onSignal);
|
|
195
202
|
this.handleListenerError();
|
|
196
203
|
}
|
|
197
204
|
get pid() {
|
|
@@ -233,6 +240,8 @@ class WorkerImpl extends enhancedEvents_1.EnhancedEventEmitter {
|
|
|
233
240
|
}
|
|
234
241
|
logger.debug('close()');
|
|
235
242
|
this.#closed = true;
|
|
243
|
+
process.removeListener('SIGINT', this.onSignal);
|
|
244
|
+
process.removeListener('SIGTERM', this.onSignal);
|
|
236
245
|
// Close every Router.
|
|
237
246
|
for (const router of this.#routers) {
|
|
238
247
|
router.workerClosed();
|
|
@@ -376,6 +385,11 @@ class WorkerImpl extends enhancedEvents_1.EnhancedEventEmitter {
|
|
|
376
385
|
logger.error(`event listener threw an error [eventName:${eventName}]:`, error);
|
|
377
386
|
});
|
|
378
387
|
}
|
|
388
|
+
// NOTE: Arrow method on purpose.
|
|
389
|
+
onSignal = (signal) => {
|
|
390
|
+
logger.debug(`signal received, closing the worker process [pid:${this.#pid}, signal:${signal}]`);
|
|
391
|
+
this.close();
|
|
392
|
+
};
|
|
379
393
|
}
|
|
380
394
|
exports.WorkerImpl = WorkerImpl;
|
|
381
395
|
function parseWorkerDumpResponse(binary) {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
export declare class DegradeRequest implements flatbuffers.IUnpackableObject<DegradeRequestT> {
|
|
3
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
4
|
+
bb_pos: number;
|
|
5
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): DegradeRequest;
|
|
6
|
+
static getRootAsDegradeRequest(bb: flatbuffers.ByteBuffer, obj?: DegradeRequest): DegradeRequest;
|
|
7
|
+
static getSizePrefixedRootAsDegradeRequest(bb: flatbuffers.ByteBuffer, obj?: DegradeRequest): DegradeRequest;
|
|
8
|
+
durationMs(): number;
|
|
9
|
+
maxDelayMs(): number;
|
|
10
|
+
delayPercent(): number;
|
|
11
|
+
lossPercent(): number;
|
|
12
|
+
static startDegradeRequest(builder: flatbuffers.Builder): void;
|
|
13
|
+
static addDurationMs(builder: flatbuffers.Builder, durationMs: number): void;
|
|
14
|
+
static addMaxDelayMs(builder: flatbuffers.Builder, maxDelayMs: number): void;
|
|
15
|
+
static addDelayPercent(builder: flatbuffers.Builder, delayPercent: number): void;
|
|
16
|
+
static addLossPercent(builder: flatbuffers.Builder, lossPercent: number): void;
|
|
17
|
+
static endDegradeRequest(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
18
|
+
static createDegradeRequest(builder: flatbuffers.Builder, durationMs: number, maxDelayMs: number, delayPercent: number, lossPercent: number): flatbuffers.Offset;
|
|
19
|
+
unpack(): DegradeRequestT;
|
|
20
|
+
unpackTo(_o: DegradeRequestT): void;
|
|
21
|
+
}
|
|
22
|
+
export declare class DegradeRequestT implements flatbuffers.IGeneratedObject {
|
|
23
|
+
durationMs: number;
|
|
24
|
+
maxDelayMs: number;
|
|
25
|
+
delayPercent: number;
|
|
26
|
+
lossPercent: number;
|
|
27
|
+
constructor(durationMs?: number, maxDelayMs?: number, delayPercent?: number, lossPercent?: number);
|
|
28
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=degrade-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"degrade-request.d.ts","sourceRoot":"","sources":["../../../src/fbs/consumer/degrade-request.ts"],"names":[],"mappings":"AAI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W,CAAC,MAAM;IAS1J,MAAM,IAAI,eAAe;IAUzB,QAAQ,CAAC,EAAE,EAAE,eAAe,GAAG,IAAI;CAMlC;AAED,qBAAa,eAAgB,YAAW,WAAW,CAAC,gBAAgB;IAE3D,UAAU,EAAE,MAAM;IAClB,UAAU,EAAE,MAAM;IAClB,YAAY,EAAE,MAAM;IACpB,WAAW,EAAE,MAAM;gBAHnB,UAAU,GAAE,MAAU,EACtB,UAAU,GAAE,MAAU,EACtB,YAAY,GAAE,MAAU,EACxB,WAAW,GAAE,MAAU;IAIhC,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAQpD"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.DegradeRequestT = exports.DegradeRequest = void 0;
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
6
|
+
const flatbuffers = require("flatbuffers");
|
|
7
|
+
class DegradeRequest {
|
|
8
|
+
bb = null;
|
|
9
|
+
bb_pos = 0;
|
|
10
|
+
__init(i, bb) {
|
|
11
|
+
this.bb_pos = i;
|
|
12
|
+
this.bb = bb;
|
|
13
|
+
return this;
|
|
14
|
+
}
|
|
15
|
+
static getRootAsDegradeRequest(bb, obj) {
|
|
16
|
+
return (obj || new DegradeRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
17
|
+
}
|
|
18
|
+
static getSizePrefixedRootAsDegradeRequest(bb, obj) {
|
|
19
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
20
|
+
return (obj || new DegradeRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
+
}
|
|
22
|
+
durationMs() {
|
|
23
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
24
|
+
return offset ? this.bb.readUint32(this.bb_pos + offset) : 0;
|
|
25
|
+
}
|
|
26
|
+
maxDelayMs() {
|
|
27
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
28
|
+
return offset ? this.bb.readUint16(this.bb_pos + offset) : 0;
|
|
29
|
+
}
|
|
30
|
+
delayPercent() {
|
|
31
|
+
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
32
|
+
return offset ? this.bb.readUint8(this.bb_pos + offset) : 0;
|
|
33
|
+
}
|
|
34
|
+
lossPercent() {
|
|
35
|
+
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
36
|
+
return offset ? this.bb.readUint8(this.bb_pos + offset) : 0;
|
|
37
|
+
}
|
|
38
|
+
static startDegradeRequest(builder) {
|
|
39
|
+
builder.startObject(4);
|
|
40
|
+
}
|
|
41
|
+
static addDurationMs(builder, durationMs) {
|
|
42
|
+
builder.addFieldInt32(0, durationMs, 0);
|
|
43
|
+
}
|
|
44
|
+
static addMaxDelayMs(builder, maxDelayMs) {
|
|
45
|
+
builder.addFieldInt16(1, maxDelayMs, 0);
|
|
46
|
+
}
|
|
47
|
+
static addDelayPercent(builder, delayPercent) {
|
|
48
|
+
builder.addFieldInt8(2, delayPercent, 0);
|
|
49
|
+
}
|
|
50
|
+
static addLossPercent(builder, lossPercent) {
|
|
51
|
+
builder.addFieldInt8(3, lossPercent, 0);
|
|
52
|
+
}
|
|
53
|
+
static endDegradeRequest(builder) {
|
|
54
|
+
const offset = builder.endObject();
|
|
55
|
+
return offset;
|
|
56
|
+
}
|
|
57
|
+
static createDegradeRequest(builder, durationMs, maxDelayMs, delayPercent, lossPercent) {
|
|
58
|
+
DegradeRequest.startDegradeRequest(builder);
|
|
59
|
+
DegradeRequest.addDurationMs(builder, durationMs);
|
|
60
|
+
DegradeRequest.addMaxDelayMs(builder, maxDelayMs);
|
|
61
|
+
DegradeRequest.addDelayPercent(builder, delayPercent);
|
|
62
|
+
DegradeRequest.addLossPercent(builder, lossPercent);
|
|
63
|
+
return DegradeRequest.endDegradeRequest(builder);
|
|
64
|
+
}
|
|
65
|
+
unpack() {
|
|
66
|
+
return new DegradeRequestT(this.durationMs(), this.maxDelayMs(), this.delayPercent(), this.lossPercent());
|
|
67
|
+
}
|
|
68
|
+
unpackTo(_o) {
|
|
69
|
+
_o.durationMs = this.durationMs();
|
|
70
|
+
_o.maxDelayMs = this.maxDelayMs();
|
|
71
|
+
_o.delayPercent = this.delayPercent();
|
|
72
|
+
_o.lossPercent = this.lossPercent();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.DegradeRequest = DegradeRequest;
|
|
76
|
+
class DegradeRequestT {
|
|
77
|
+
durationMs;
|
|
78
|
+
maxDelayMs;
|
|
79
|
+
delayPercent;
|
|
80
|
+
lossPercent;
|
|
81
|
+
constructor(durationMs = 0, maxDelayMs = 0, delayPercent = 0, lossPercent = 0) {
|
|
82
|
+
this.durationMs = durationMs;
|
|
83
|
+
this.maxDelayMs = maxDelayMs;
|
|
84
|
+
this.delayPercent = delayPercent;
|
|
85
|
+
this.lossPercent = lossPercent;
|
|
86
|
+
}
|
|
87
|
+
pack(builder) {
|
|
88
|
+
return DegradeRequest.createDegradeRequest(builder, this.durationMs, this.maxDelayMs, this.delayPercent, this.lossPercent);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.DegradeRequestT = DegradeRequestT;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
export declare class EnableDelayAndLossRequest implements flatbuffers.IUnpackableObject<EnableDelayAndLossRequestT> {
|
|
3
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
4
|
+
bb_pos: number;
|
|
5
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): EnableDelayAndLossRequest;
|
|
6
|
+
static getRootAsEnableDelayAndLossRequest(bb: flatbuffers.ByteBuffer, obj?: EnableDelayAndLossRequest): EnableDelayAndLossRequest;
|
|
7
|
+
static getSizePrefixedRootAsEnableDelayAndLossRequest(bb: flatbuffers.ByteBuffer, obj?: EnableDelayAndLossRequest): EnableDelayAndLossRequest;
|
|
8
|
+
delay(): boolean;
|
|
9
|
+
loss(): boolean;
|
|
10
|
+
static startEnableDelayAndLossRequest(builder: flatbuffers.Builder): void;
|
|
11
|
+
static addDelay(builder: flatbuffers.Builder, delay: boolean): void;
|
|
12
|
+
static addLoss(builder: flatbuffers.Builder, loss: boolean): void;
|
|
13
|
+
static endEnableDelayAndLossRequest(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
14
|
+
static createEnableDelayAndLossRequest(builder: flatbuffers.Builder, delay: boolean, loss: boolean): flatbuffers.Offset;
|
|
15
|
+
unpack(): EnableDelayAndLossRequestT;
|
|
16
|
+
unpackTo(_o: EnableDelayAndLossRequestT): void;
|
|
17
|
+
}
|
|
18
|
+
export declare class EnableDelayAndLossRequestT implements flatbuffers.IGeneratedObject {
|
|
19
|
+
delay: boolean;
|
|
20
|
+
loss: boolean;
|
|
21
|
+
constructor(delay?: boolean, loss?: boolean);
|
|
22
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=enable-delay-and-loss-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enable-delay-and-loss-request.d.ts","sourceRoot":"","sources":["../../../src/fbs/consumer/enable-delay-and-loss-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAI3C,qBAAa,yBAA0B,YAAW,WAAW,CAAC,iBAAiB,CAAC,0BAA0B,CAAC;IACzG,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,yBAAyB;IAMvE,MAAM,CAAC,kCAAkC,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,yBAAyB,GAAE,yBAAyB;IAI9H,MAAM,CAAC,8CAA8C,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,yBAAyB,GAAE,yBAAyB;IAK1I,KAAK,IAAG,OAAO;IAKf,IAAI,IAAG,OAAO;IAKd,MAAM,CAAC,8BAA8B,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO;IAIjE,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,KAAK,EAAC,OAAO;IAI1D,MAAM,CAAC,OAAO,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,IAAI,EAAC,OAAO;IAIxD,MAAM,CAAC,4BAA4B,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAKnF,MAAM,CAAC,+BAA+B,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,KAAK,EAAC,OAAO,EAAE,IAAI,EAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAOnH,MAAM,IAAI,0BAA0B;IAQpC,QAAQ,CAAC,EAAE,EAAE,0BAA0B,GAAG,IAAI;CAI7C;AAED,qBAAa,0BAA2B,YAAW,WAAW,CAAC,gBAAgB;IAEtE,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,OAAO;gBADb,KAAK,GAAE,OAAe,EACtB,IAAI,GAAE,OAAe;IAI9B,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAMpD"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.EnableDelayAndLossRequestT = exports.EnableDelayAndLossRequest = void 0;
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
6
|
+
const flatbuffers = require("flatbuffers");
|
|
7
|
+
class EnableDelayAndLossRequest {
|
|
8
|
+
bb = null;
|
|
9
|
+
bb_pos = 0;
|
|
10
|
+
__init(i, bb) {
|
|
11
|
+
this.bb_pos = i;
|
|
12
|
+
this.bb = bb;
|
|
13
|
+
return this;
|
|
14
|
+
}
|
|
15
|
+
static getRootAsEnableDelayAndLossRequest(bb, obj) {
|
|
16
|
+
return (obj || new EnableDelayAndLossRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
17
|
+
}
|
|
18
|
+
static getSizePrefixedRootAsEnableDelayAndLossRequest(bb, obj) {
|
|
19
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
20
|
+
return (obj || new EnableDelayAndLossRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
+
}
|
|
22
|
+
delay() {
|
|
23
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
24
|
+
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
|
|
25
|
+
}
|
|
26
|
+
loss() {
|
|
27
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
28
|
+
return offset ? !!this.bb.readInt8(this.bb_pos + offset) : false;
|
|
29
|
+
}
|
|
30
|
+
static startEnableDelayAndLossRequest(builder) {
|
|
31
|
+
builder.startObject(2);
|
|
32
|
+
}
|
|
33
|
+
static addDelay(builder, delay) {
|
|
34
|
+
builder.addFieldInt8(0, +delay, +false);
|
|
35
|
+
}
|
|
36
|
+
static addLoss(builder, loss) {
|
|
37
|
+
builder.addFieldInt8(1, +loss, +false);
|
|
38
|
+
}
|
|
39
|
+
static endEnableDelayAndLossRequest(builder) {
|
|
40
|
+
const offset = builder.endObject();
|
|
41
|
+
return offset;
|
|
42
|
+
}
|
|
43
|
+
static createEnableDelayAndLossRequest(builder, delay, loss) {
|
|
44
|
+
EnableDelayAndLossRequest.startEnableDelayAndLossRequest(builder);
|
|
45
|
+
EnableDelayAndLossRequest.addDelay(builder, delay);
|
|
46
|
+
EnableDelayAndLossRequest.addLoss(builder, loss);
|
|
47
|
+
return EnableDelayAndLossRequest.endEnableDelayAndLossRequest(builder);
|
|
48
|
+
}
|
|
49
|
+
unpack() {
|
|
50
|
+
return new EnableDelayAndLossRequestT(this.delay(), this.loss());
|
|
51
|
+
}
|
|
52
|
+
unpackTo(_o) {
|
|
53
|
+
_o.delay = this.delay();
|
|
54
|
+
_o.loss = this.loss();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.EnableDelayAndLossRequest = EnableDelayAndLossRequest;
|
|
58
|
+
class EnableDelayAndLossRequestT {
|
|
59
|
+
delay;
|
|
60
|
+
loss;
|
|
61
|
+
constructor(delay = false, loss = false) {
|
|
62
|
+
this.delay = delay;
|
|
63
|
+
this.loss = loss;
|
|
64
|
+
}
|
|
65
|
+
pack(builder) {
|
|
66
|
+
return EnableDelayAndLossRequest.createEnableDelayAndLossRequest(builder, this.delay, this.loss);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.EnableDelayAndLossRequestT = EnableDelayAndLossRequestT;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
export declare class DegradeRequest implements flatbuffers.IUnpackableObject<DegradeRequestT> {
|
|
3
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
4
|
+
bb_pos: number;
|
|
5
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): DegradeRequest;
|
|
6
|
+
static getRootAsDegradeRequest(bb: flatbuffers.ByteBuffer, obj?: DegradeRequest): DegradeRequest;
|
|
7
|
+
static getSizePrefixedRootAsDegradeRequest(bb: flatbuffers.ByteBuffer, obj?: DegradeRequest): DegradeRequest;
|
|
8
|
+
durationMs(): number;
|
|
9
|
+
maxDelayMs(): number;
|
|
10
|
+
delayPercent(): number;
|
|
11
|
+
lossPercent(): number;
|
|
12
|
+
static startDegradeRequest(builder: flatbuffers.Builder): void;
|
|
13
|
+
static addDurationMs(builder: flatbuffers.Builder, durationMs: number): void;
|
|
14
|
+
static addMaxDelayMs(builder: flatbuffers.Builder, maxDelayMs: number): void;
|
|
15
|
+
static addDelayPercent(builder: flatbuffers.Builder, delayPercent: number): void;
|
|
16
|
+
static addLossPercent(builder: flatbuffers.Builder, lossPercent: number): void;
|
|
17
|
+
static endDegradeRequest(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
18
|
+
static createDegradeRequest(builder: flatbuffers.Builder, durationMs: number, maxDelayMs: number, delayPercent: number, lossPercent: number): flatbuffers.Offset;
|
|
19
|
+
unpack(): DegradeRequestT;
|
|
20
|
+
unpackTo(_o: DegradeRequestT): void;
|
|
21
|
+
}
|
|
22
|
+
export declare class DegradeRequestT implements flatbuffers.IGeneratedObject {
|
|
23
|
+
durationMs: number;
|
|
24
|
+
maxDelayMs: number;
|
|
25
|
+
delayPercent: number;
|
|
26
|
+
lossPercent: number;
|
|
27
|
+
constructor(durationMs?: number, maxDelayMs?: number, delayPercent?: number, lossPercent?: number);
|
|
28
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=degrade-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"degrade-request.d.ts","sourceRoot":"","sources":["../../../src/fbs/producer/degrade-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAI3C,qBAAa,cAAe,YAAW,WAAW,CAAC,iBAAiB,CAAC,eAAe,CAAC;IACnF,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,cAAc;IAM5D,MAAM,CAAC,uBAAuB,CAA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EACtB,YAAY,GAAE,MAAU,EACxB,WAAW,GAAE,MAAU;IAIhC,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAQpD"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.DegradeRequestT = exports.DegradeRequest = void 0;
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
6
|
+
const flatbuffers = require("flatbuffers");
|
|
7
|
+
class DegradeRequest {
|
|
8
|
+
bb = null;
|
|
9
|
+
bb_pos = 0;
|
|
10
|
+
__init(i, bb) {
|
|
11
|
+
this.bb_pos = i;
|
|
12
|
+
this.bb = bb;
|
|
13
|
+
return this;
|
|
14
|
+
}
|
|
15
|
+
static getRootAsDegradeRequest(bb, obj) {
|
|
16
|
+
return (obj || new DegradeRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
17
|
+
}
|
|
18
|
+
static getSizePrefixedRootAsDegradeRequest(bb, obj) {
|
|
19
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
20
|
+
return (obj || new DegradeRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
+
}
|
|
22
|
+
durationMs() {
|
|
23
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
24
|
+
return offset ? this.bb.readUint32(this.bb_pos + offset) : 0;
|
|
25
|
+
}
|
|
26
|
+
maxDelayMs() {
|
|
27
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
28
|
+
return offset ? this.bb.readUint16(this.bb_pos + offset) : 0;
|
|
29
|
+
}
|
|
30
|
+
delayPercent() {
|
|
31
|
+
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
32
|
+
return offset ? this.bb.readUint8(this.bb_pos + offset) : 0;
|
|
33
|
+
}
|
|
34
|
+
lossPercent() {
|
|
35
|
+
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
36
|
+
return offset ? this.bb.readUint8(this.bb_pos + offset) : 0;
|
|
37
|
+
}
|
|
38
|
+
static startDegradeRequest(builder) {
|
|
39
|
+
builder.startObject(4);
|
|
40
|
+
}
|
|
41
|
+
static addDurationMs(builder, durationMs) {
|
|
42
|
+
builder.addFieldInt32(0, durationMs, 0);
|
|
43
|
+
}
|
|
44
|
+
static addMaxDelayMs(builder, maxDelayMs) {
|
|
45
|
+
builder.addFieldInt16(1, maxDelayMs, 0);
|
|
46
|
+
}
|
|
47
|
+
static addDelayPercent(builder, delayPercent) {
|
|
48
|
+
builder.addFieldInt8(2, delayPercent, 0);
|
|
49
|
+
}
|
|
50
|
+
static addLossPercent(builder, lossPercent) {
|
|
51
|
+
builder.addFieldInt8(3, lossPercent, 0);
|
|
52
|
+
}
|
|
53
|
+
static endDegradeRequest(builder) {
|
|
54
|
+
const offset = builder.endObject();
|
|
55
|
+
return offset;
|
|
56
|
+
}
|
|
57
|
+
static createDegradeRequest(builder, durationMs, maxDelayMs, delayPercent, lossPercent) {
|
|
58
|
+
DegradeRequest.startDegradeRequest(builder);
|
|
59
|
+
DegradeRequest.addDurationMs(builder, durationMs);
|
|
60
|
+
DegradeRequest.addMaxDelayMs(builder, maxDelayMs);
|
|
61
|
+
DegradeRequest.addDelayPercent(builder, delayPercent);
|
|
62
|
+
DegradeRequest.addLossPercent(builder, lossPercent);
|
|
63
|
+
return DegradeRequest.endDegradeRequest(builder);
|
|
64
|
+
}
|
|
65
|
+
unpack() {
|
|
66
|
+
return new DegradeRequestT(this.durationMs(), this.maxDelayMs(), this.delayPercent(), this.lossPercent());
|
|
67
|
+
}
|
|
68
|
+
unpackTo(_o) {
|
|
69
|
+
_o.durationMs = this.durationMs();
|
|
70
|
+
_o.maxDelayMs = this.maxDelayMs();
|
|
71
|
+
_o.delayPercent = this.delayPercent();
|
|
72
|
+
_o.lossPercent = this.lossPercent();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
exports.DegradeRequest = DegradeRequest;
|
|
76
|
+
class DegradeRequestT {
|
|
77
|
+
durationMs;
|
|
78
|
+
maxDelayMs;
|
|
79
|
+
delayPercent;
|
|
80
|
+
lossPercent;
|
|
81
|
+
constructor(durationMs = 0, maxDelayMs = 0, delayPercent = 0, lossPercent = 0) {
|
|
82
|
+
this.durationMs = durationMs;
|
|
83
|
+
this.maxDelayMs = maxDelayMs;
|
|
84
|
+
this.delayPercent = delayPercent;
|
|
85
|
+
this.lossPercent = lossPercent;
|
|
86
|
+
}
|
|
87
|
+
pack(builder) {
|
|
88
|
+
return DegradeRequest.createDegradeRequest(builder, this.durationMs, this.maxDelayMs, this.delayPercent, this.lossPercent);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.DegradeRequestT = DegradeRequestT;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
export declare class CloseNotification implements flatbuffers.IUnpackableObject<CloseNotificationT> {
|
|
3
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
4
|
+
bb_pos: number;
|
|
5
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): CloseNotification;
|
|
6
|
+
static getRootAsCloseNotification(bb: flatbuffers.ByteBuffer, obj?: CloseNotification): CloseNotification;
|
|
7
|
+
static getSizePrefixedRootAsCloseNotification(bb: flatbuffers.ByteBuffer, obj?: CloseNotification): CloseNotification;
|
|
8
|
+
static startCloseNotification(builder: flatbuffers.Builder): void;
|
|
9
|
+
static endCloseNotification(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
10
|
+
static createCloseNotification(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
11
|
+
unpack(): CloseNotificationT;
|
|
12
|
+
unpackTo(_o: CloseNotificationT): void;
|
|
13
|
+
}
|
|
14
|
+
export declare class CloseNotificationT implements flatbuffers.IGeneratedObject {
|
|
15
|
+
constructor();
|
|
16
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=close-notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close-notification.d.ts","sourceRoot":"","sources":["../../../src/fbs/worker/close-notification.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAI3C,qBAAa,iBAAkB,YAAW,WAAW,CAAC,iBAAiB,CAAC,kBAAkB,CAAC;IACzF,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,iBAAiB;IAM/D,MAAM,CAAC,0BAA0B,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,iBAAiB,GAAE,iBAAiB;IAItG,MAAM,CAAC,sCAAsC,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,iBAAiB,GAAE,iBAAiB;IAKlH,MAAM,CAAC,sBAAsB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO;IAIzD,MAAM,CAAC,oBAAoB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAK3E,MAAM,CAAC,uBAAuB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAK9E,MAAM,IAAI,kBAAkB;IAK5B,QAAQ,CAAC,EAAE,EAAE,kBAAkB,GAAG,IAAI;CACrC;AAED,qBAAa,kBAAmB,YAAW,WAAW,CAAC,gBAAgB;;IAIvE,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAGpD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CloseNotificationT = exports.CloseNotification = void 0;
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
6
|
+
const flatbuffers = require("flatbuffers");
|
|
7
|
+
class CloseNotification {
|
|
8
|
+
bb = null;
|
|
9
|
+
bb_pos = 0;
|
|
10
|
+
__init(i, bb) {
|
|
11
|
+
this.bb_pos = i;
|
|
12
|
+
this.bb = bb;
|
|
13
|
+
return this;
|
|
14
|
+
}
|
|
15
|
+
static getRootAsCloseNotification(bb, obj) {
|
|
16
|
+
return (obj || new CloseNotification()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
17
|
+
}
|
|
18
|
+
static getSizePrefixedRootAsCloseNotification(bb, obj) {
|
|
19
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
20
|
+
return (obj || new CloseNotification()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
+
}
|
|
22
|
+
static startCloseNotification(builder) {
|
|
23
|
+
builder.startObject(0);
|
|
24
|
+
}
|
|
25
|
+
static endCloseNotification(builder) {
|
|
26
|
+
const offset = builder.endObject();
|
|
27
|
+
return offset;
|
|
28
|
+
}
|
|
29
|
+
static createCloseNotification(builder) {
|
|
30
|
+
CloseNotification.startCloseNotification(builder);
|
|
31
|
+
return CloseNotification.endCloseNotification(builder);
|
|
32
|
+
}
|
|
33
|
+
unpack() {
|
|
34
|
+
return new CloseNotificationT();
|
|
35
|
+
}
|
|
36
|
+
unpackTo(_o) { }
|
|
37
|
+
}
|
|
38
|
+
exports.CloseNotification = CloseNotification;
|
|
39
|
+
class CloseNotificationT {
|
|
40
|
+
constructor() { }
|
|
41
|
+
pack(builder) {
|
|
42
|
+
return CloseNotification.createCloseNotification(builder);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.CloseNotificationT = CloseNotificationT;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
export declare class CloseRequest implements flatbuffers.IUnpackableObject<CloseRequestT> {
|
|
3
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
4
|
+
bb_pos: number;
|
|
5
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): CloseRequest;
|
|
6
|
+
static getRootAsCloseRequest(bb: flatbuffers.ByteBuffer, obj?: CloseRequest): CloseRequest;
|
|
7
|
+
static getSizePrefixedRootAsCloseRequest(bb: flatbuffers.ByteBuffer, obj?: CloseRequest): CloseRequest;
|
|
8
|
+
static startCloseRequest(builder: flatbuffers.Builder): void;
|
|
9
|
+
static endCloseRequest(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
10
|
+
static createCloseRequest(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
11
|
+
unpack(): CloseRequestT;
|
|
12
|
+
unpackTo(_o: CloseRequestT): void;
|
|
13
|
+
}
|
|
14
|
+
export declare class CloseRequestT implements flatbuffers.IGeneratedObject {
|
|
15
|
+
constructor();
|
|
16
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=close-request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close-request.d.ts","sourceRoot":"","sources":["../../../src/fbs/worker/close-request.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAI3C,qBAAa,YAAa,YAAW,WAAW,CAAC,iBAAiB,CAAC,aAAa,CAAC;IAC/E,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,YAAY;IAM1D,MAAM,CAAC,qBAAqB,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,YAAY,GAAE,YAAY;IAIvF,MAAM,CAAC,iCAAiC,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,YAAY,GAAE,YAAY;IAKnG,MAAM,CAAC,iBAAiB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO;IAIpD,MAAM,CAAC,eAAe,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAKtE,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAKzE,MAAM,IAAI,aAAa;IAKvB,QAAQ,CAAC,EAAE,EAAE,aAAa,GAAG,IAAI;CAChC;AAED,qBAAa,aAAc,YAAW,WAAW,CAAC,gBAAgB;;IAIlE,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAGpD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CloseRequestT = exports.CloseRequest = void 0;
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
6
|
+
const flatbuffers = require("flatbuffers");
|
|
7
|
+
class CloseRequest {
|
|
8
|
+
bb = null;
|
|
9
|
+
bb_pos = 0;
|
|
10
|
+
__init(i, bb) {
|
|
11
|
+
this.bb_pos = i;
|
|
12
|
+
this.bb = bb;
|
|
13
|
+
return this;
|
|
14
|
+
}
|
|
15
|
+
static getRootAsCloseRequest(bb, obj) {
|
|
16
|
+
return (obj || new CloseRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
17
|
+
}
|
|
18
|
+
static getSizePrefixedRootAsCloseRequest(bb, obj) {
|
|
19
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
20
|
+
return (obj || new CloseRequest()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
+
}
|
|
22
|
+
static startCloseRequest(builder) {
|
|
23
|
+
builder.startObject(0);
|
|
24
|
+
}
|
|
25
|
+
static endCloseRequest(builder) {
|
|
26
|
+
const offset = builder.endObject();
|
|
27
|
+
return offset;
|
|
28
|
+
}
|
|
29
|
+
static createCloseRequest(builder) {
|
|
30
|
+
CloseRequest.startCloseRequest(builder);
|
|
31
|
+
return CloseRequest.endCloseRequest(builder);
|
|
32
|
+
}
|
|
33
|
+
unpack() {
|
|
34
|
+
return new CloseRequestT();
|
|
35
|
+
}
|
|
36
|
+
unpackTo(_o) { }
|
|
37
|
+
}
|
|
38
|
+
exports.CloseRequest = CloseRequest;
|
|
39
|
+
class CloseRequestT {
|
|
40
|
+
constructor() { }
|
|
41
|
+
pack(builder) {
|
|
42
|
+
return CloseRequest.createCloseRequest(builder);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.CloseRequestT = CloseRequestT;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
export declare class CloseWorkerNotification implements flatbuffers.IUnpackableObject<CloseWorkerNotificationT> {
|
|
3
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
4
|
+
bb_pos: number;
|
|
5
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): CloseWorkerNotification;
|
|
6
|
+
static getRootAsCloseWorkerNotification(bb: flatbuffers.ByteBuffer, obj?: CloseWorkerNotification): CloseWorkerNotification;
|
|
7
|
+
static getSizePrefixedRootAsCloseWorkerNotification(bb: flatbuffers.ByteBuffer, obj?: CloseWorkerNotification): CloseWorkerNotification;
|
|
8
|
+
static startCloseWorkerNotification(builder: flatbuffers.Builder): void;
|
|
9
|
+
static endCloseWorkerNotification(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
10
|
+
static createCloseWorkerNotification(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
11
|
+
unpack(): CloseWorkerNotificationT;
|
|
12
|
+
unpackTo(_o: CloseWorkerNotificationT): void;
|
|
13
|
+
}
|
|
14
|
+
export declare class CloseWorkerNotificationT implements flatbuffers.IGeneratedObject {
|
|
15
|
+
constructor();
|
|
16
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=close-worker-notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"close-worker-notification.d.ts","sourceRoot":"","sources":["../../../src/fbs/worker/close-worker-notification.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAI3C,qBAAa,uBAAwB,YAAW,WAAW,CAAC,iBAAiB,CAAC,wBAAwB,CAAC;IACrG,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,uBAAuB;IAMrE,MAAM,CAAC,gCAAgC,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,uBAAuB,GAAE,uBAAuB;IAIxH,MAAM,CAAC,4CAA4C,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,uBAAuB,GAAE,uBAAuB;IAKpI,MAAM,CAAC,4BAA4B,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO;IAI/D,MAAM,CAAC,0BAA0B,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAKjF,MAAM,CAAC,6BAA6B,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAKpF,MAAM,IAAI,wBAAwB;IAKlC,QAAQ,CAAC,EAAE,EAAE,wBAAwB,GAAG,IAAI;CAC3C;AAED,qBAAa,wBAAyB,YAAW,WAAW,CAAC,gBAAgB;;IAI7E,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAGpD"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CloseWorkerNotificationT = exports.CloseWorkerNotification = void 0;
|
|
5
|
+
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */
|
|
6
|
+
const flatbuffers = require("flatbuffers");
|
|
7
|
+
class CloseWorkerNotification {
|
|
8
|
+
bb = null;
|
|
9
|
+
bb_pos = 0;
|
|
10
|
+
__init(i, bb) {
|
|
11
|
+
this.bb_pos = i;
|
|
12
|
+
this.bb = bb;
|
|
13
|
+
return this;
|
|
14
|
+
}
|
|
15
|
+
static getRootAsCloseWorkerNotification(bb, obj) {
|
|
16
|
+
return (obj || new CloseWorkerNotification()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
17
|
+
}
|
|
18
|
+
static getSizePrefixedRootAsCloseWorkerNotification(bb, obj) {
|
|
19
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
20
|
+
return (obj || new CloseWorkerNotification()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
+
}
|
|
22
|
+
static startCloseWorkerNotification(builder) {
|
|
23
|
+
builder.startObject(0);
|
|
24
|
+
}
|
|
25
|
+
static endCloseWorkerNotification(builder) {
|
|
26
|
+
const offset = builder.endObject();
|
|
27
|
+
return offset;
|
|
28
|
+
}
|
|
29
|
+
static createCloseWorkerNotification(builder) {
|
|
30
|
+
CloseWorkerNotification.startCloseWorkerNotification(builder);
|
|
31
|
+
return CloseWorkerNotification.endCloseWorkerNotification(builder);
|
|
32
|
+
}
|
|
33
|
+
unpack() {
|
|
34
|
+
return new CloseWorkerNotificationT();
|
|
35
|
+
}
|
|
36
|
+
unpackTo(_o) { }
|
|
37
|
+
}
|
|
38
|
+
exports.CloseWorkerNotification = CloseWorkerNotification;
|
|
39
|
+
class CloseWorkerNotificationT {
|
|
40
|
+
constructor() { }
|
|
41
|
+
pack(builder) {
|
|
42
|
+
return CloseWorkerNotification.createCloseWorkerNotification(builder);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.CloseWorkerNotificationT = CloseWorkerNotificationT;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mediasoup",
|
|
3
|
-
"version": "3.19.
|
|
3
|
+
"version": "3.19.22",
|
|
4
4
|
"description": "Cutting Edge WebRTC Video Conferencing",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
|
|
@@ -48,6 +48,8 @@
|
|
|
48
48
|
"worker/fuzzer/include",
|
|
49
49
|
"worker/fuzzer/src",
|
|
50
50
|
"worker/include",
|
|
51
|
+
"worker/mocks/include",
|
|
52
|
+
"worker/mocks/src",
|
|
51
53
|
"worker/src",
|
|
52
54
|
"worker/scripts/*.json",
|
|
53
55
|
"worker/scripts/*.mjs",
|
|
@@ -125,7 +127,7 @@
|
|
|
125
127
|
"prettier": "^3.8.3",
|
|
126
128
|
"ts-jest": "^29.4.9",
|
|
127
129
|
"typescript": "^5.9.3",
|
|
128
|
-
"typescript-eslint": "^8.
|
|
130
|
+
"typescript-eslint": "^8.59.1",
|
|
129
131
|
"werift-sctp": "^0.0.11"
|
|
130
132
|
}
|
|
131
133
|
}
|