mediasoup 3.13.6 → 3.13.8
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 +5 -0
- package/node/lib/Worker.d.ts.map +1 -1
- package/node/lib/Worker.js +10 -1
- package/node/lib/fbs/lib-uring/dump.d.ts +27 -0
- package/node/lib/fbs/lib-uring/dump.d.ts.map +1 -0
- package/node/lib/fbs/lib-uring/dump.js +79 -0
- package/node/lib/fbs/lib-uring.d.ts +2 -0
- package/node/lib/fbs/lib-uring.d.ts.map +1 -0
- package/node/lib/fbs/lib-uring.js +7 -0
- package/node/lib/fbs/message-from-worker/body.d.ts +12 -0
- package/node/lib/fbs/message-from-worker/body.d.ts.map +1 -0
- package/node/lib/fbs/message-from-worker/body.js +34 -0
- package/node/lib/fbs/message-from-worker/message.d.ts +30 -0
- package/node/lib/fbs/message-from-worker/message.d.ts.map +1 -0
- package/node/lib/fbs/message-from-worker/message.js +89 -0
- package/node/lib/fbs/message-from-worker.d.ts +3 -0
- package/node/lib/fbs/message-from-worker.d.ts.map +1 -0
- package/node/lib/fbs/message-from-worker.js +9 -0
- package/node/lib/fbs/message-to-worker/body.d.ts +10 -0
- package/node/lib/fbs/message-to-worker/body.d.ts.map +1 -0
- package/node/lib/fbs/message-to-worker/body.js +30 -0
- package/node/lib/fbs/message-to-worker/message.d.ts +29 -0
- package/node/lib/fbs/message-to-worker/message.d.ts.map +1 -0
- package/node/lib/fbs/message-to-worker/message.js +89 -0
- package/node/lib/fbs/message-to-worker.d.ts +3 -0
- package/node/lib/fbs/message-to-worker.d.ts.map +1 -0
- package/node/lib/fbs/message-to-worker.js +9 -0
- package/node/lib/fbs/notification-from-worker/body.d.ts +44 -0
- package/node/lib/fbs/notification-from-worker/body.d.ts.map +1 -0
- package/node/lib/fbs/notification-from-worker/body.js +98 -0
- package/node/lib/fbs/notification-from-worker/event.d.ts +31 -0
- package/node/lib/fbs/notification-from-worker/event.d.ts.map +1 -0
- package/node/lib/fbs/notification-from-worker/event.js +35 -0
- package/node/lib/fbs/notification-from-worker/notification.d.ts +52 -0
- package/node/lib/fbs/notification-from-worker/notification.d.ts.map +1 -0
- package/node/lib/fbs/notification-from-worker/notification.js +107 -0
- package/node/lib/fbs/notification-from-worker.d.ts +4 -0
- package/node/lib/fbs/notification-from-worker.d.ts.map +1 -0
- package/node/lib/fbs/notification-from-worker.js +11 -0
- package/node/lib/fbs/notification-to-worker/body.d.ts +12 -0
- package/node/lib/fbs/notification-to-worker/body.d.ts.map +1 -0
- package/node/lib/fbs/notification-to-worker/body.js +34 -0
- package/node/lib/fbs/notification-to-worker/event.d.ts +6 -0
- package/node/lib/fbs/notification-to-worker/event.d.ts.map +1 -0
- package/node/lib/fbs/notification-to-worker/event.js +10 -0
- package/node/lib/fbs/notification-to-worker/notification.d.ts +36 -0
- package/node/lib/fbs/notification-to-worker/notification.d.ts.map +1 -0
- package/node/lib/fbs/notification-to-worker/notification.js +107 -0
- package/node/lib/fbs/notification-to-worker.d.ts +4 -0
- package/node/lib/fbs/notification-to-worker.d.ts.map +1 -0
- package/node/lib/fbs/notification-to-worker.js +11 -0
- package/node/lib/fbs/trace-events/fir-trace-info.d.ts +21 -0
- package/node/lib/fbs/trace-events/fir-trace-info.d.ts.map +1 -0
- package/node/lib/fbs/trace-events/fir-trace-info.js +57 -0
- package/node/lib/fbs/trace-events/key-frame-trace-info.d.ts +25 -0
- package/node/lib/fbs/trace-events/key-frame-trace-info.d.ts.map +1 -0
- package/node/lib/fbs/trace-events/key-frame-trace-info.js +71 -0
- package/node/lib/fbs/trace-events/pli-trace-info.d.ts +21 -0
- package/node/lib/fbs/trace-events/pli-trace-info.d.ts.map +1 -0
- package/node/lib/fbs/trace-events/pli-trace-info.js +57 -0
- package/node/lib/fbs/trace-events/rtp-trace-info.d.ts +25 -0
- package/node/lib/fbs/trace-events/rtp-trace-info.d.ts.map +1 -0
- package/node/lib/fbs/trace-events/rtp-trace-info.js +71 -0
- package/node/lib/fbs/trace-events/trace-event-type.d.ts +8 -0
- package/node/lib/fbs/trace-events/trace-event-type.d.ts.map +1 -0
- package/node/lib/fbs/trace-events/trace-event-type.js +12 -0
- package/node/lib/fbs/trace-events/trace-info.d.ts +14 -0
- package/node/lib/fbs/trace-events/trace-info.d.ts.map +1 -0
- package/node/lib/fbs/trace-events/trace-info.js +38 -0
- package/node/lib/fbs/trace-events.d.ts +7 -0
- package/node/lib/fbs/trace-events.d.ts.map +1 -0
- package/node/lib/fbs/trace-events.js +20 -0
- package/node/lib/fbs/worker/dump-response.d.ts +5 -1
- package/node/lib/fbs/worker/dump-response.d.ts.map +1 -1
- package/node/lib/fbs/worker/dump-response.js +16 -3
- package/node/lib/tests/test-Router.js +1 -1
- package/node/lib/tests/test-WebRtcServer.js +3 -3
- package/node/lib/tests/test-Worker.js +1 -1
- package/npm-scripts.mjs +4 -12
- package/package.json +16 -16
- package/worker/fbs/liburing.fbs +8 -0
- package/worker/fbs/meson.build +1 -0
- package/worker/fbs/worker.fbs +2 -0
- package/worker/include/DepLibUring.hpp +104 -0
- package/worker/include/handles/TcpConnectionHandle.hpp +4 -0
- package/worker/include/handles/UdpSocketHandle.hpp +4 -0
- package/worker/meson.build +23 -0
- package/worker/meson_options.txt +1 -0
- package/worker/src/Channel/ChannelNotification.cpp +1 -6
- package/worker/src/Channel/ChannelRequest.cpp +1 -6
- package/worker/src/DepLibUring.cpp +449 -0
- package/worker/src/DepUsrSCTP.cpp +17 -0
- package/worker/src/RTC/Router.cpp +30 -2
- package/worker/src/RTC/RtpStreamSend.cpp +13 -0
- package/worker/src/RTC/Transport.cpp +14 -1
- package/worker/src/Worker.cpp +23 -1
- package/worker/src/handles/TcpConnectionHandle.cpp +40 -3
- package/worker/src/handles/UdpSocketHandle.cpp +37 -0
- package/worker/src/lib.cpp +9 -0
- package/worker/subprojects/abseil-cpp.wrap +87 -8
- package/worker/subprojects/liburing.wrap +13 -0
- package/worker/subprojects/libuv.wrap +9 -9
- package/worker/subprojects/openssl.wrap +5 -5
- package/worker/subprojects/usrsctp.wrap +4 -4
- package/worker/tasks.py +1 -1
- package/worker/Makefile +0 -122
- package/worker/scripts/package-lock.json +0 -2827
package/node/lib/Worker.d.ts
CHANGED
|
@@ -130,6 +130,11 @@ export type WorkerDump = {
|
|
|
130
130
|
channelRequestHandlers: string[];
|
|
131
131
|
channelNotificationHandlers: string[];
|
|
132
132
|
};
|
|
133
|
+
liburing?: {
|
|
134
|
+
sqeProcessCount: number;
|
|
135
|
+
sqeMissCount: number;
|
|
136
|
+
userDataMissCount: number;
|
|
137
|
+
};
|
|
133
138
|
};
|
|
134
139
|
export type WorkerEvents = {
|
|
135
140
|
died: [Error];
|
package/node/lib/Worker.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Worker.d.ts","sourceRoot":"","sources":["../src/Worker.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAIlC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAI1C,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAEjE,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,KAAK,GACL,OAAO,GACP,WAAW,GACX,KAAK,GACL,MAAM,GACN,SAAS,CAAC;AAEd,MAAM,MAAM,cAAc,CAAC,aAAa,SAAS,OAAO,GAAG,OAAO,IAClE;IACC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;IAE1B;;;OAGG;IACH,OAAO,CA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,EACC,WAAW,EACX,OAAO,EACP,GAAE,aAAa,CAAC,aAAa,CAAM,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IA0CtE,OAAO,CAAC,UAAU;CAkClB;AAED,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,SAAS,CAAC,YAAY,GAC5B,UAAU,CAwBZ"}
|
package/node/lib/Worker.js
CHANGED
|
@@ -395,7 +395,7 @@ class Worker extends EnhancedEventEmitter_1.EnhancedEventEmitter {
|
|
|
395
395
|
}
|
|
396
396
|
exports.Worker = Worker;
|
|
397
397
|
function parseWorkerDumpResponse(binary) {
|
|
398
|
-
|
|
398
|
+
const dump = {
|
|
399
399
|
pid: binary.pid(),
|
|
400
400
|
webRtcServerIds: (0, utils_1.parseVector)(binary, 'webRtcServerIds'),
|
|
401
401
|
routerIds: (0, utils_1.parseVector)(binary, 'routerIds'),
|
|
@@ -404,5 +404,14 @@ function parseWorkerDumpResponse(binary) {
|
|
|
404
404
|
channelNotificationHandlers: (0, utils_1.parseVector)(binary.channelMessageHandlers(), 'channelNotificationHandlers')
|
|
405
405
|
}
|
|
406
406
|
};
|
|
407
|
+
if (binary.liburing()) {
|
|
408
|
+
dump.liburing =
|
|
409
|
+
{
|
|
410
|
+
sqeProcessCount: Number(binary.liburing().sqeProcessCount()),
|
|
411
|
+
sqeMissCount: Number(binary.liburing().sqeMissCount()),
|
|
412
|
+
userDataMissCount: Number(binary.liburing().userDataMissCount())
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
return dump;
|
|
407
416
|
}
|
|
408
417
|
exports.parseWorkerDumpResponse = parseWorkerDumpResponse;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
export declare class Dump implements flatbuffers.IUnpackableObject<DumpT> {
|
|
3
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
4
|
+
bb_pos: number;
|
|
5
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): Dump;
|
|
6
|
+
static getRootAsDump(bb: flatbuffers.ByteBuffer, obj?: Dump): Dump;
|
|
7
|
+
static getSizePrefixedRootAsDump(bb: flatbuffers.ByteBuffer, obj?: Dump): Dump;
|
|
8
|
+
sqeProcessCount(): bigint;
|
|
9
|
+
sqeMissCount(): bigint;
|
|
10
|
+
userDataMissCount(): bigint;
|
|
11
|
+
static startDump(builder: flatbuffers.Builder): void;
|
|
12
|
+
static addSqeProcessCount(builder: flatbuffers.Builder, sqeProcessCount: bigint): void;
|
|
13
|
+
static addSqeMissCount(builder: flatbuffers.Builder, sqeMissCount: bigint): void;
|
|
14
|
+
static addUserDataMissCount(builder: flatbuffers.Builder, userDataMissCount: bigint): void;
|
|
15
|
+
static endDump(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
16
|
+
static createDump(builder: flatbuffers.Builder, sqeProcessCount: bigint, sqeMissCount: bigint, userDataMissCount: bigint): flatbuffers.Offset;
|
|
17
|
+
unpack(): DumpT;
|
|
18
|
+
unpackTo(_o: DumpT): void;
|
|
19
|
+
}
|
|
20
|
+
export declare class DumpT implements flatbuffers.IGeneratedObject {
|
|
21
|
+
sqeProcessCount: bigint;
|
|
22
|
+
sqeMissCount: bigint;
|
|
23
|
+
userDataMissCount: bigint;
|
|
24
|
+
constructor(sqeProcessCount?: bigint, sqeMissCount?: bigint, userDataMissCount?: bigint);
|
|
25
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=dump.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dump.d.ts","sourceRoot":"","sources":["../../../src/fbs/lib-uring/dump.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAI3C,qBAAa,IAAK,YAAW,WAAW,CAAC,iBAAiB,CAAC,KAAK,CAAC;IAC/D,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,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B;IAIhD,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAOpD"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.DumpT = exports.Dump = void 0;
|
|
5
|
+
const flatbuffers = require("flatbuffers");
|
|
6
|
+
class Dump {
|
|
7
|
+
bb = null;
|
|
8
|
+
bb_pos = 0;
|
|
9
|
+
__init(i, bb) {
|
|
10
|
+
this.bb_pos = i;
|
|
11
|
+
this.bb = bb;
|
|
12
|
+
return this;
|
|
13
|
+
}
|
|
14
|
+
static getRootAsDump(bb, obj) {
|
|
15
|
+
return (obj || new Dump()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
16
|
+
}
|
|
17
|
+
static getSizePrefixedRootAsDump(bb, obj) {
|
|
18
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
19
|
+
return (obj || new Dump()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
20
|
+
}
|
|
21
|
+
sqeProcessCount() {
|
|
22
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
23
|
+
return offset ? this.bb.readUint64(this.bb_pos + offset) : BigInt('0');
|
|
24
|
+
}
|
|
25
|
+
sqeMissCount() {
|
|
26
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
27
|
+
return offset ? this.bb.readUint64(this.bb_pos + offset) : BigInt('0');
|
|
28
|
+
}
|
|
29
|
+
userDataMissCount() {
|
|
30
|
+
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
31
|
+
return offset ? this.bb.readUint64(this.bb_pos + offset) : BigInt('0');
|
|
32
|
+
}
|
|
33
|
+
static startDump(builder) {
|
|
34
|
+
builder.startObject(3);
|
|
35
|
+
}
|
|
36
|
+
static addSqeProcessCount(builder, sqeProcessCount) {
|
|
37
|
+
builder.addFieldInt64(0, sqeProcessCount, BigInt('0'));
|
|
38
|
+
}
|
|
39
|
+
static addSqeMissCount(builder, sqeMissCount) {
|
|
40
|
+
builder.addFieldInt64(1, sqeMissCount, BigInt('0'));
|
|
41
|
+
}
|
|
42
|
+
static addUserDataMissCount(builder, userDataMissCount) {
|
|
43
|
+
builder.addFieldInt64(2, userDataMissCount, BigInt('0'));
|
|
44
|
+
}
|
|
45
|
+
static endDump(builder) {
|
|
46
|
+
const offset = builder.endObject();
|
|
47
|
+
return offset;
|
|
48
|
+
}
|
|
49
|
+
static createDump(builder, sqeProcessCount, sqeMissCount, userDataMissCount) {
|
|
50
|
+
Dump.startDump(builder);
|
|
51
|
+
Dump.addSqeProcessCount(builder, sqeProcessCount);
|
|
52
|
+
Dump.addSqeMissCount(builder, sqeMissCount);
|
|
53
|
+
Dump.addUserDataMissCount(builder, userDataMissCount);
|
|
54
|
+
return Dump.endDump(builder);
|
|
55
|
+
}
|
|
56
|
+
unpack() {
|
|
57
|
+
return new DumpT(this.sqeProcessCount(), this.sqeMissCount(), this.userDataMissCount());
|
|
58
|
+
}
|
|
59
|
+
unpackTo(_o) {
|
|
60
|
+
_o.sqeProcessCount = this.sqeProcessCount();
|
|
61
|
+
_o.sqeMissCount = this.sqeMissCount();
|
|
62
|
+
_o.userDataMissCount = this.userDataMissCount();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.Dump = Dump;
|
|
66
|
+
class DumpT {
|
|
67
|
+
sqeProcessCount;
|
|
68
|
+
sqeMissCount;
|
|
69
|
+
userDataMissCount;
|
|
70
|
+
constructor(sqeProcessCount = BigInt('0'), sqeMissCount = BigInt('0'), userDataMissCount = BigInt('0')) {
|
|
71
|
+
this.sqeProcessCount = sqeProcessCount;
|
|
72
|
+
this.sqeMissCount = sqeMissCount;
|
|
73
|
+
this.userDataMissCount = userDataMissCount;
|
|
74
|
+
}
|
|
75
|
+
pack(builder) {
|
|
76
|
+
return Dump.createDump(builder, this.sqeProcessCount, this.sqeMissCount, this.userDataMissCount);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.DumpT = DumpT;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib-uring.d.ts","sourceRoot":"","sources":["../../src/fbs/lib-uring.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.DumpT = exports.Dump = void 0;
|
|
5
|
+
var dump_1 = require("./lib-uring/dump");
|
|
6
|
+
Object.defineProperty(exports, "Dump", { enumerable: true, get: function () { return dump_1.Dump; } });
|
|
7
|
+
Object.defineProperty(exports, "DumpT", { enumerable: true, get: function () { return dump_1.DumpT; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Log } from '../../fbs/log/log';
|
|
2
|
+
import { Notification } from '../../fbs/notification-from-worker/notification';
|
|
3
|
+
import { Response } from '../../fbs/response/response';
|
|
4
|
+
export declare enum Body {
|
|
5
|
+
NONE = 0,
|
|
6
|
+
Response = 1,
|
|
7
|
+
Notification = 2,
|
|
8
|
+
Log = 3
|
|
9
|
+
}
|
|
10
|
+
export declare function unionToBody(type: Body, accessor: (obj: Log | Notification | Response) => Log | Notification | Response | null): Log | Notification | Response | null;
|
|
11
|
+
export declare function unionListToBody(type: Body, accessor: (index: number, obj: Log | Notification | Response) => Log | Notification | Response | null, index: number): Log | Notification | Response | null;
|
|
12
|
+
//# sourceMappingURL=body.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../../src/fbs/message-from-worker/body.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAQ,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAiB,MAAM,iDAAiD,CAAC;AAC9F,OAAO,EAAE,QAAQ,EAAa,MAAM,6BAA6B,CAAC;AAGlE,oBAAY,IAAI;IACd,IAAI,IAAI;IACR,QAAQ,IAAI;IACZ,YAAY,IAAI;IAChB,GAAG,IAAI;CACR;AAED,wBAAgB,WAAW,CACzB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,GAAG,EAAC,GAAG,GAAC,YAAY,GAAC,QAAQ,KAAK,GAAG,GAAC,YAAY,GAAC,QAAQ,GAAC,IAAI,GAC1E,GAAG,GAAC,YAAY,GAAC,QAAQ,GAAC,IAAI,CAQhC;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAC,GAAG,GAAC,YAAY,GAAC,QAAQ,KAAK,GAAG,GAAC,YAAY,GAAC,QAAQ,GAAC,IAAI,EAC1F,KAAK,EAAE,MAAM,GACZ,GAAG,GAAC,YAAY,GAAC,QAAQ,GAAC,IAAI,CAQhC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.unionListToBody = exports.unionToBody = exports.Body = void 0;
|
|
5
|
+
const log_1 = require("../../fbs/log/log");
|
|
6
|
+
const notification_1 = require("../../fbs/notification-from-worker/notification");
|
|
7
|
+
const response_1 = require("../../fbs/response/response");
|
|
8
|
+
var Body;
|
|
9
|
+
(function (Body) {
|
|
10
|
+
Body[Body["NONE"] = 0] = "NONE";
|
|
11
|
+
Body[Body["Response"] = 1] = "Response";
|
|
12
|
+
Body[Body["Notification"] = 2] = "Notification";
|
|
13
|
+
Body[Body["Log"] = 3] = "Log";
|
|
14
|
+
})(Body || (exports.Body = Body = {}));
|
|
15
|
+
function unionToBody(type, accessor) {
|
|
16
|
+
switch (Body[type]) {
|
|
17
|
+
case 'NONE': return null;
|
|
18
|
+
case 'Response': return accessor(new response_1.Response());
|
|
19
|
+
case 'Notification': return accessor(new notification_1.Notification());
|
|
20
|
+
case 'Log': return accessor(new log_1.Log());
|
|
21
|
+
default: return null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.unionToBody = unionToBody;
|
|
25
|
+
function unionListToBody(type, accessor, index) {
|
|
26
|
+
switch (Body[type]) {
|
|
27
|
+
case 'NONE': return null;
|
|
28
|
+
case 'Response': return accessor(index, new response_1.Response());
|
|
29
|
+
case 'Notification': return accessor(index, new notification_1.Notification());
|
|
30
|
+
case 'Log': return accessor(index, new log_1.Log());
|
|
31
|
+
default: return null;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.unionListToBody = unionListToBody;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
import { LogT } from '../../fbs/log/log';
|
|
3
|
+
import { Body } from '../../fbs/message-from-worker/body';
|
|
4
|
+
import { NotificationT } from '../../fbs/notification-from-worker/notification';
|
|
5
|
+
import { ResponseT } from '../../fbs/response/response';
|
|
6
|
+
export declare class Message implements flatbuffers.IUnpackableObject<MessageT> {
|
|
7
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
8
|
+
bb_pos: number;
|
|
9
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): Message;
|
|
10
|
+
static getRootAsMessage(bb: flatbuffers.ByteBuffer, obj?: Message): Message;
|
|
11
|
+
static getSizePrefixedRootAsMessage(bb: flatbuffers.ByteBuffer, obj?: Message): Message;
|
|
12
|
+
dataType(): Body;
|
|
13
|
+
data<T extends flatbuffers.Table>(obj: any): any | null;
|
|
14
|
+
static startMessage(builder: flatbuffers.Builder): void;
|
|
15
|
+
static addDataType(builder: flatbuffers.Builder, dataType: Body): void;
|
|
16
|
+
static addData(builder: flatbuffers.Builder, dataOffset: flatbuffers.Offset): void;
|
|
17
|
+
static endMessage(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
18
|
+
static finishMessageBuffer(builder: flatbuffers.Builder, offset: flatbuffers.Offset): void;
|
|
19
|
+
static finishSizePrefixedMessageBuffer(builder: flatbuffers.Builder, offset: flatbuffers.Offset): void;
|
|
20
|
+
static createMessage(builder: flatbuffers.Builder, dataType: Body, dataOffset: flatbuffers.Offset): flatbuffers.Offset;
|
|
21
|
+
unpack(): MessageT;
|
|
22
|
+
unpackTo(_o: MessageT): void;
|
|
23
|
+
}
|
|
24
|
+
export declare class MessageT implements flatbuffers.IGeneratedObject {
|
|
25
|
+
dataType: Body;
|
|
26
|
+
data: LogT | NotificationT | ResponseT | null;
|
|
27
|
+
constructor(dataType?: Body, data?: LogT | NotificationT | ResponseT | null);
|
|
28
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/fbs/message-from-worker/message.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAO,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAgC,MAAM,oCAAoC,CAAC;AACxF,OAAO,EAAgB,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAC9F,OAAO,EAAY,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAGlE,qBAAa,OAAQ,YAAW,WAAW,CAAC,iBAAiB,CAAC,QAAQ,CAAC;IACrE,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,OAAO;IAMrD,MAAM,CAAC,gBAAgB,CA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,IAAI,GAAE,IAAI,GAAC,aAAa,GAAC,SAAS,GAAC,IAAW;IAIvD,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAQpD"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.MessageT = exports.Message = void 0;
|
|
5
|
+
const flatbuffers = require("flatbuffers");
|
|
6
|
+
const body_1 = require("../../fbs/message-from-worker/body");
|
|
7
|
+
class Message {
|
|
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 getRootAsMessage(bb, obj) {
|
|
16
|
+
return (obj || new Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
17
|
+
}
|
|
18
|
+
static getSizePrefixedRootAsMessage(bb, obj) {
|
|
19
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
20
|
+
return (obj || new Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
+
}
|
|
22
|
+
dataType() {
|
|
23
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
24
|
+
return offset ? this.bb.readUint8(this.bb_pos + offset) : body_1.Body.NONE;
|
|
25
|
+
}
|
|
26
|
+
data(obj) {
|
|
27
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
28
|
+
return offset ? this.bb.__union(obj, this.bb_pos + offset) : null;
|
|
29
|
+
}
|
|
30
|
+
static startMessage(builder) {
|
|
31
|
+
builder.startObject(2);
|
|
32
|
+
}
|
|
33
|
+
static addDataType(builder, dataType) {
|
|
34
|
+
builder.addFieldInt8(0, dataType, body_1.Body.NONE);
|
|
35
|
+
}
|
|
36
|
+
static addData(builder, dataOffset) {
|
|
37
|
+
builder.addFieldOffset(1, dataOffset, 0);
|
|
38
|
+
}
|
|
39
|
+
static endMessage(builder) {
|
|
40
|
+
const offset = builder.endObject();
|
|
41
|
+
builder.requiredField(offset, 6); // data
|
|
42
|
+
return offset;
|
|
43
|
+
}
|
|
44
|
+
static finishMessageBuffer(builder, offset) {
|
|
45
|
+
builder.finish(offset);
|
|
46
|
+
}
|
|
47
|
+
static finishSizePrefixedMessageBuffer(builder, offset) {
|
|
48
|
+
builder.finish(offset, undefined, true);
|
|
49
|
+
}
|
|
50
|
+
static createMessage(builder, dataType, dataOffset) {
|
|
51
|
+
Message.startMessage(builder);
|
|
52
|
+
Message.addDataType(builder, dataType);
|
|
53
|
+
Message.addData(builder, dataOffset);
|
|
54
|
+
return Message.endMessage(builder);
|
|
55
|
+
}
|
|
56
|
+
unpack() {
|
|
57
|
+
return new MessageT(this.dataType(), (() => {
|
|
58
|
+
const temp = (0, body_1.unionToBody)(this.dataType(), this.data.bind(this));
|
|
59
|
+
if (temp === null) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
return temp.unpack();
|
|
63
|
+
})());
|
|
64
|
+
}
|
|
65
|
+
unpackTo(_o) {
|
|
66
|
+
_o.dataType = this.dataType();
|
|
67
|
+
_o.data = (() => {
|
|
68
|
+
const temp = (0, body_1.unionToBody)(this.dataType(), this.data.bind(this));
|
|
69
|
+
if (temp === null) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return temp.unpack();
|
|
73
|
+
})();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
exports.Message = Message;
|
|
77
|
+
class MessageT {
|
|
78
|
+
dataType;
|
|
79
|
+
data;
|
|
80
|
+
constructor(dataType = body_1.Body.NONE, data = null) {
|
|
81
|
+
this.dataType = dataType;
|
|
82
|
+
this.data = data;
|
|
83
|
+
}
|
|
84
|
+
pack(builder) {
|
|
85
|
+
const data = builder.createObjectOffset(this.data);
|
|
86
|
+
return Message.createMessage(builder, this.dataType, data);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.MessageT = MessageT;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-from-worker.d.ts","sourceRoot":"","sources":["../../src/fbs/message-from-worker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.MessageT = exports.Message = exports.Body = void 0;
|
|
5
|
+
var body_1 = require("./message-from-worker/body");
|
|
6
|
+
Object.defineProperty(exports, "Body", { enumerable: true, get: function () { return body_1.Body; } });
|
|
7
|
+
var message_1 = require("./message-from-worker/message");
|
|
8
|
+
Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return message_1.Message; } });
|
|
9
|
+
Object.defineProperty(exports, "MessageT", { enumerable: true, get: function () { return message_1.MessageT; } });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Notification } from '../../fbs/notification-to-worker/notification';
|
|
2
|
+
import { Request } from '../../fbs/request/request';
|
|
3
|
+
export declare enum Body {
|
|
4
|
+
NONE = 0,
|
|
5
|
+
Request = 1,
|
|
6
|
+
Notification = 2
|
|
7
|
+
}
|
|
8
|
+
export declare function unionToBody(type: Body, accessor: (obj: Notification | Request) => Notification | Request | null): Notification | Request | null;
|
|
9
|
+
export declare function unionListToBody(type: Body, accessor: (index: number, obj: Notification | Request) => Notification | Request | null, index: number): Notification | Request | null;
|
|
10
|
+
//# sourceMappingURL=body.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../../src/fbs/message-to-worker/body.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAiB,MAAM,+CAA+C,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAY,MAAM,2BAA2B,CAAC;AAG9D,oBAAY,IAAI;IACd,IAAI,IAAI;IACR,OAAO,IAAI;IACX,YAAY,IAAI;CACjB;AAED,wBAAgB,WAAW,CACzB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,GAAG,EAAC,YAAY,GAAC,OAAO,KAAK,YAAY,GAAC,OAAO,GAAC,IAAI,GAChE,YAAY,GAAC,OAAO,GAAC,IAAI,CAO3B;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAC,YAAY,GAAC,OAAO,KAAK,YAAY,GAAC,OAAO,GAAC,IAAI,EAChF,KAAK,EAAE,MAAM,GACZ,YAAY,GAAC,OAAO,GAAC,IAAI,CAO3B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.unionListToBody = exports.unionToBody = exports.Body = void 0;
|
|
5
|
+
const notification_1 = require("../../fbs/notification-to-worker/notification");
|
|
6
|
+
const request_1 = require("../../fbs/request/request");
|
|
7
|
+
var Body;
|
|
8
|
+
(function (Body) {
|
|
9
|
+
Body[Body["NONE"] = 0] = "NONE";
|
|
10
|
+
Body[Body["Request"] = 1] = "Request";
|
|
11
|
+
Body[Body["Notification"] = 2] = "Notification";
|
|
12
|
+
})(Body || (exports.Body = Body = {}));
|
|
13
|
+
function unionToBody(type, accessor) {
|
|
14
|
+
switch (Body[type]) {
|
|
15
|
+
case 'NONE': return null;
|
|
16
|
+
case 'Request': return accessor(new request_1.Request());
|
|
17
|
+
case 'Notification': return accessor(new notification_1.Notification());
|
|
18
|
+
default: return null;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.unionToBody = unionToBody;
|
|
22
|
+
function unionListToBody(type, accessor, index) {
|
|
23
|
+
switch (Body[type]) {
|
|
24
|
+
case 'NONE': return null;
|
|
25
|
+
case 'Request': return accessor(index, new request_1.Request());
|
|
26
|
+
case 'Notification': return accessor(index, new notification_1.Notification());
|
|
27
|
+
default: return null;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.unionListToBody = unionListToBody;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
import { Body } from '../../fbs/message-to-worker/body';
|
|
3
|
+
import { NotificationT } from '../../fbs/notification-to-worker/notification';
|
|
4
|
+
import { RequestT } from '../../fbs/request/request';
|
|
5
|
+
export declare class Message implements flatbuffers.IUnpackableObject<MessageT> {
|
|
6
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
7
|
+
bb_pos: number;
|
|
8
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): Message;
|
|
9
|
+
static getRootAsMessage(bb: flatbuffers.ByteBuffer, obj?: Message): Message;
|
|
10
|
+
static getSizePrefixedRootAsMessage(bb: flatbuffers.ByteBuffer, obj?: Message): Message;
|
|
11
|
+
dataType(): Body;
|
|
12
|
+
data<T extends flatbuffers.Table>(obj: any): any | null;
|
|
13
|
+
static startMessage(builder: flatbuffers.Builder): void;
|
|
14
|
+
static addDataType(builder: flatbuffers.Builder, dataType: Body): void;
|
|
15
|
+
static addData(builder: flatbuffers.Builder, dataOffset: flatbuffers.Offset): void;
|
|
16
|
+
static endMessage(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
17
|
+
static finishMessageBuffer(builder: flatbuffers.Builder, offset: flatbuffers.Offset): void;
|
|
18
|
+
static finishSizePrefixedMessageBuffer(builder: flatbuffers.Builder, offset: flatbuffers.Offset): void;
|
|
19
|
+
static createMessage(builder: flatbuffers.Builder, dataType: Body, dataOffset: flatbuffers.Offset): flatbuffers.Offset;
|
|
20
|
+
unpack(): MessageT;
|
|
21
|
+
unpackTo(_o: MessageT): void;
|
|
22
|
+
}
|
|
23
|
+
export declare class MessageT implements flatbuffers.IGeneratedObject {
|
|
24
|
+
dataType: Body;
|
|
25
|
+
data: NotificationT | RequestT | null;
|
|
26
|
+
constructor(dataType?: Body, data?: NotificationT | RequestT | null);
|
|
27
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/fbs/message-to-worker/message.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,IAAI,EAAgC,MAAM,kCAAkC,CAAC;AACtF,OAAO,EAAgB,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC5F,OAAO,EAAW,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAG9D,qBAAa,OAAQ,YAAW,WAAW,CAAC,iBAAiB,CAAC,QAAQ,CAAC;IACrE,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SAAK;IACX,MAAM,CAAC,CAAC,EAAC,MAAM,EAAE,EAAE,EAAC,WAAW,CAAC,UAAU,GAAE,OAAO;IAMrD,MAAM,CAAC,gBAAgB,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,OAAO,GAAE,OAAO;IAIxE,MAAM,CAAC,4BAA4B,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GAAG,CAAC,EAAC,OAAO,GAAE,OAAO;IAKpF,QAAQ,IAAG,IAAI;IAKf,IAAI,CAAC,CAAC,SAAS,WAAW,CAAC,KAAK,EAAE,GAAG,EAAC,GAAG,GAAE,GAAG,GAAC,IAAI;IAKnD,MAAM,CAAC,YAAY,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO;IAI/C,MAAM,CAAC,WAAW,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,QAAQ,EAAC,IAAI;IAI7D,MAAM,CAAC,OAAO,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,UAAU,EAAC,WAAW,CAAC,MAAM;IAIzE,MAAM,CAAC,UAAU,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAE,WAAW,CAAC,MAAM;IAMjE,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,MAAM,EAAC,WAAW,CAAC,MAAM;IAIjF,MAAM,CAAC,+BAA+B,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,MAAM,EAAC,WAAW,CAAC,MAAM;IAI7F,MAAM,CAAC,aAAa,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,QAAQ,EAAC,IAAI,EAAE,UAAU,EAAC,WAAW,CAAC,MAAM,GAAE,WAAW,CAAC,MAAM;IAOlH,MAAM,IAAI,QAAQ;IAYlB,QAAQ,CAAC,EAAE,EAAE,QAAQ,GAAG,IAAI;CAQ3B;AAED,qBAAa,QAAS,YAAW,WAAW,CAAC,gBAAgB;IAEpD,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,aAAa,GAAC,QAAQ,GAAC,IAAI;gBADjC,QAAQ,GAAE,IAAgB,EAC1B,IAAI,GAAE,aAAa,GAAC,QAAQ,GAAC,IAAW;IAIjD,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAQpD"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.MessageT = exports.Message = void 0;
|
|
5
|
+
const flatbuffers = require("flatbuffers");
|
|
6
|
+
const body_1 = require("../../fbs/message-to-worker/body");
|
|
7
|
+
class Message {
|
|
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 getRootAsMessage(bb, obj) {
|
|
16
|
+
return (obj || new Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
17
|
+
}
|
|
18
|
+
static getSizePrefixedRootAsMessage(bb, obj) {
|
|
19
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
20
|
+
return (obj || new Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
21
|
+
}
|
|
22
|
+
dataType() {
|
|
23
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
24
|
+
return offset ? this.bb.readUint8(this.bb_pos + offset) : body_1.Body.NONE;
|
|
25
|
+
}
|
|
26
|
+
data(obj) {
|
|
27
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
28
|
+
return offset ? this.bb.__union(obj, this.bb_pos + offset) : null;
|
|
29
|
+
}
|
|
30
|
+
static startMessage(builder) {
|
|
31
|
+
builder.startObject(2);
|
|
32
|
+
}
|
|
33
|
+
static addDataType(builder, dataType) {
|
|
34
|
+
builder.addFieldInt8(0, dataType, body_1.Body.NONE);
|
|
35
|
+
}
|
|
36
|
+
static addData(builder, dataOffset) {
|
|
37
|
+
builder.addFieldOffset(1, dataOffset, 0);
|
|
38
|
+
}
|
|
39
|
+
static endMessage(builder) {
|
|
40
|
+
const offset = builder.endObject();
|
|
41
|
+
builder.requiredField(offset, 6); // data
|
|
42
|
+
return offset;
|
|
43
|
+
}
|
|
44
|
+
static finishMessageBuffer(builder, offset) {
|
|
45
|
+
builder.finish(offset);
|
|
46
|
+
}
|
|
47
|
+
static finishSizePrefixedMessageBuffer(builder, offset) {
|
|
48
|
+
builder.finish(offset, undefined, true);
|
|
49
|
+
}
|
|
50
|
+
static createMessage(builder, dataType, dataOffset) {
|
|
51
|
+
Message.startMessage(builder);
|
|
52
|
+
Message.addDataType(builder, dataType);
|
|
53
|
+
Message.addData(builder, dataOffset);
|
|
54
|
+
return Message.endMessage(builder);
|
|
55
|
+
}
|
|
56
|
+
unpack() {
|
|
57
|
+
return new MessageT(this.dataType(), (() => {
|
|
58
|
+
const temp = (0, body_1.unionToBody)(this.dataType(), this.data.bind(this));
|
|
59
|
+
if (temp === null) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
return temp.unpack();
|
|
63
|
+
})());
|
|
64
|
+
}
|
|
65
|
+
unpackTo(_o) {
|
|
66
|
+
_o.dataType = this.dataType();
|
|
67
|
+
_o.data = (() => {
|
|
68
|
+
const temp = (0, body_1.unionToBody)(this.dataType(), this.data.bind(this));
|
|
69
|
+
if (temp === null) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return temp.unpack();
|
|
73
|
+
})();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
exports.Message = Message;
|
|
77
|
+
class MessageT {
|
|
78
|
+
dataType;
|
|
79
|
+
data;
|
|
80
|
+
constructor(dataType = body_1.Body.NONE, data = null) {
|
|
81
|
+
this.dataType = dataType;
|
|
82
|
+
this.data = data;
|
|
83
|
+
}
|
|
84
|
+
pack(builder) {
|
|
85
|
+
const data = builder.createObjectOffset(this.data);
|
|
86
|
+
return Message.createMessage(builder, this.dataType, data);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
exports.MessageT = MessageT;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-to-worker.d.ts","sourceRoot":"","sources":["../../src/fbs/message-to-worker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.MessageT = exports.Message = exports.Body = void 0;
|
|
5
|
+
var body_1 = require("./message-to-worker/body");
|
|
6
|
+
Object.defineProperty(exports, "Body", { enumerable: true, get: function () { return body_1.Body; } });
|
|
7
|
+
var message_1 = require("./message-to-worker/message");
|
|
8
|
+
Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return message_1.Message; } });
|
|
9
|
+
Object.defineProperty(exports, "MessageT", { enumerable: true, get: function () { return message_1.MessageT; } });
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DominantSpeakerNotification } from '../../fbs/active-speaker-observer/dominant-speaker-notification';
|
|
2
|
+
import { VolumesNotification } from '../../fbs/audio-level-observer/volumes-notification';
|
|
3
|
+
import { LayersChangeNotification } from '../../fbs/consumer/layers-change-notification';
|
|
4
|
+
import { RtpNotification } from '../../fbs/consumer/rtp-notification';
|
|
5
|
+
import { ScoreNotification as FBS_Consumer_ScoreNotification } from '../../fbs/consumer/score-notification';
|
|
6
|
+
import { TraceNotification as FBS_Consumer_TraceNotification } from '../../fbs/consumer/trace-notification';
|
|
7
|
+
import { BufferedAmountLowNotification } from '../../fbs/data-consumer/buffered-amount-low-notification';
|
|
8
|
+
import { MessageNotification } from '../../fbs/data-consumer/message-notification';
|
|
9
|
+
import { RtcpNotification } from '../../fbs/direct-transport/rtcp-notification';
|
|
10
|
+
import { RtcpTupleNotification } from '../../fbs/plain-transport/rtcp-tuple-notification';
|
|
11
|
+
import { TupleNotification } from '../../fbs/plain-transport/tuple-notification';
|
|
12
|
+
import { ScoreNotification } from '../../fbs/producer/score-notification';
|
|
13
|
+
import { TraceNotification as FBS_Producer_TraceNotification } from '../../fbs/producer/trace-notification';
|
|
14
|
+
import { VideoOrientationChangeNotification } from '../../fbs/producer/video-orientation-change-notification';
|
|
15
|
+
import { SctpStateChangeNotification } from '../../fbs/transport/sctp-state-change-notification';
|
|
16
|
+
import { TraceNotification } from '../../fbs/transport/trace-notification';
|
|
17
|
+
import { DtlsStateChangeNotification } from '../../fbs/web-rtc-transport/dtls-state-change-notification';
|
|
18
|
+
import { IceSelectedTupleChangeNotification } from '../../fbs/web-rtc-transport/ice-selected-tuple-change-notification';
|
|
19
|
+
import { IceStateChangeNotification } from '../../fbs/web-rtc-transport/ice-state-change-notification';
|
|
20
|
+
export declare enum Body {
|
|
21
|
+
NONE = 0,
|
|
22
|
+
Transport_TraceNotification = 1,
|
|
23
|
+
Transport_SctpStateChangeNotification = 2,
|
|
24
|
+
WebRtcTransport_IceSelectedTupleChangeNotification = 3,
|
|
25
|
+
WebRtcTransport_IceStateChangeNotification = 4,
|
|
26
|
+
WebRtcTransport_DtlsStateChangeNotification = 5,
|
|
27
|
+
PlainTransport_TupleNotification = 6,
|
|
28
|
+
PlainTransport_RtcpTupleNotification = 7,
|
|
29
|
+
DirectTransport_RtcpNotification = 8,
|
|
30
|
+
Producer_ScoreNotification = 9,
|
|
31
|
+
Producer_TraceNotification = 10,
|
|
32
|
+
Producer_VideoOrientationChangeNotification = 11,
|
|
33
|
+
Consumer_LayersChangeNotification = 12,
|
|
34
|
+
Consumer_RtpNotification = 13,
|
|
35
|
+
Consumer_ScoreNotification = 14,
|
|
36
|
+
Consumer_TraceNotification = 15,
|
|
37
|
+
DataConsumer_MessageNotification = 16,
|
|
38
|
+
DataConsumer_BufferedAmountLowNotification = 17,
|
|
39
|
+
ActiveSpeakerObserver_DominantSpeakerNotification = 18,
|
|
40
|
+
AudioLevelObserver_VolumesNotification = 19
|
|
41
|
+
}
|
|
42
|
+
export declare function unionToBody(type: Body, accessor: (obj: BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification) => BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification | null): BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification | null;
|
|
43
|
+
export declare function unionListToBody(type: Body, accessor: (index: number, obj: BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification) => BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification | null, index: number): BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification | null;
|
|
44
|
+
//# sourceMappingURL=body.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../../src/fbs/notification-from-worker/body.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAgC,MAAM,iEAAiE,CAAC;AAC5I,OAAO,EAAE,mBAAmB,EAAwB,MAAM,qDAAqD,CAAC;AAChH,OAAO,EAAE,wBAAwB,EAA6B,MAAM,+CAA+C,CAAC;AACpH,OAAO,EAAE,eAAe,EAAoB,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,iBAAiB,IAAI,8BAA8B,EAAyD,MAAM,uCAAuC,CAAC;AACnK,OAAO,EAAE,iBAAiB,IAAI,8BAA8B,EAAyD,MAAM,uCAAuC,CAAC;AACnK,OAAO,EAAE,6BAA6B,EAAkC,MAAM,0DAA0D,CAAC;AACzI,OAAO,EAAE,mBAAmB,EAAwB,MAAM,8CAA8C,CAAC;AACzG,OAAO,EAAE,gBAAgB,EAAqB,MAAM,8CAA8C,CAAC;AACnG,OAAO,EAAE,qBAAqB,EAA0B,MAAM,mDAAmD,CAAC;AAClH,OAAO,EAAE,iBAAiB,EAAsB,MAAM,8CAA8C,CAAC;AACrG,OAAO,EAAE,iBAAiB,EAAsB,MAAM,uCAAuC,CAAC;AAC9F,OAAO,EAAE,iBAAiB,IAAI,8BAA8B,EAAyD,MAAM,uCAAuC,CAAC;AACnK,OAAO,EAAE,kCAAkC,EAAuC,MAAM,0DAA0D,CAAC;AACnJ,OAAO,EAAE,2BAA2B,EAAgC,MAAM,oDAAoD,CAAC;AAC/H,OAAO,E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