mediasoup 3.20.7 → 3.20.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 +1 -1
- package/node/lib/Worker.d.ts.map +1 -1
- package/node/lib/Worker.js +11 -1
- package/node/lib/WorkerTypes.d.ts +9 -0
- package/node/lib/WorkerTypes.d.ts.map +1 -1
- package/node/lib/fbs/data-consumer/binary.d.ts +25 -0
- package/node/lib/fbs/data-consumer/binary.d.ts.map +1 -0
- package/node/lib/fbs/data-consumer/binary.js +110 -0
- package/node/lib/fbs/data-consumer/data.d.ts +10 -0
- package/node/lib/fbs/data-consumer/data.d.ts.map +1 -0
- package/node/lib/fbs/data-consumer/data.js +30 -0
- package/node/lib/fbs/data-consumer/string.d.ts +22 -0
- package/node/lib/fbs/data-consumer/string.d.ts.map +1 -0
- package/node/lib/fbs/{worker/close-notification.js → data-consumer/string.js} +34 -20
- package/node/lib/fbs/data-producer/binary.d.ts +25 -0
- package/node/lib/fbs/data-producer/binary.d.ts.map +1 -0
- package/node/lib/fbs/data-producer/binary.js +110 -0
- package/node/lib/fbs/data-producer/data.d.ts +10 -0
- package/node/lib/fbs/data-producer/data.d.ts.map +1 -0
- package/node/lib/fbs/data-producer/data.js +30 -0
- package/node/lib/fbs/data-producer/string.d.ts +22 -0
- package/node/lib/fbs/data-producer/string.d.ts.map +1 -0
- package/node/lib/fbs/data-producer/string.js +92 -0
- package/node/lib/fbs/message/type.d.ts +7 -0
- package/node/lib/fbs/message/type.d.ts.map +1 -0
- package/node/lib/fbs/message/type.js +11 -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 +122 -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 +122 -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 +140 -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 +140 -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/plain-transport/connect-response.d.ts.map +1 -1
- package/node/lib/fbs/plain-transport/connect-response.js +1 -0
- package/node/lib/fbs/sctp-parameters/num-sctp-streams.d.ts.map +1 -1
- package/node/lib/fbs/sctp-parameters/num-sctp-streams.js +5 -5
- 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/{worker/close-request.js → trace-events/fir-trace-info.js} +32 -20
- 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 +104 -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/{worker/close-worker-notification.js → trace-events/pli-trace-info.js} +32 -20
- 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/{consumer/enable-delay-and-loss-request.js → trace-events/rtp-trace-info.js} +35 -33
- 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/index.d.ts +1 -1
- package/node/lib/index.d.ts.map +1 -1
- package/node/lib/index.js +2 -1
- package/node/lib/test/test-PlainTransport.js +0 -30
- package/node/lib/test/test-Worker.js +1 -0
- package/package.json +1 -1
- package/worker/src/RTC/SimpleProducerStreamManager.cpp +6 -3
- package/node/lib/fbs/consumer/degrade-request.d.ts +0 -30
- package/node/lib/fbs/consumer/degrade-request.d.ts.map +0 -1
- package/node/lib/fbs/consumer/degrade-request.js +0 -124
- package/node/lib/fbs/consumer/enable-delay-and-loss-request.d.ts +0 -24
- package/node/lib/fbs/consumer/enable-delay-and-loss-request.d.ts.map +0 -1
- package/node/lib/fbs/producer/degrade-request.d.ts +0 -30
- package/node/lib/fbs/producer/degrade-request.d.ts.map +0 -1
- package/node/lib/fbs/producer/degrade-request.js +0 -124
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.d.ts +0 -24
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.d.ts.map +0 -1
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.js +0 -102
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.d.ts +0 -24
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.d.ts.map +0 -1
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.js +0 -102
- package/node/lib/fbs/worker/close-notification.d.ts +0 -18
- package/node/lib/fbs/worker/close-notification.d.ts.map +0 -1
- package/node/lib/fbs/worker/close-request.d.ts +0 -18
- package/node/lib/fbs/worker/close-request.d.ts.map +0 -1
- package/node/lib/fbs/worker/close-worker-notification.d.ts +0 -18
- package/node/lib/fbs/worker/close-worker-notification.d.ts.map +0 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.StringT = exports.String = void 0;
|
|
38
|
+
const flatbuffers = __importStar(require("flatbuffers"));
|
|
39
|
+
class String {
|
|
40
|
+
bb = null;
|
|
41
|
+
bb_pos = 0;
|
|
42
|
+
__init(i, bb) {
|
|
43
|
+
this.bb_pos = i;
|
|
44
|
+
this.bb = bb;
|
|
45
|
+
return this;
|
|
46
|
+
}
|
|
47
|
+
static getRootAsString(bb, obj) {
|
|
48
|
+
return (obj || new String()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
49
|
+
}
|
|
50
|
+
static getSizePrefixedRootAsString(bb, obj) {
|
|
51
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
52
|
+
return (obj || new String()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
53
|
+
}
|
|
54
|
+
value(optionalEncoding) {
|
|
55
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
56
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
57
|
+
}
|
|
58
|
+
static startString(builder) {
|
|
59
|
+
builder.startObject(1);
|
|
60
|
+
}
|
|
61
|
+
static addValue(builder, valueOffset) {
|
|
62
|
+
builder.addFieldOffset(0, valueOffset, 0);
|
|
63
|
+
}
|
|
64
|
+
static endString(builder) {
|
|
65
|
+
const offset = builder.endObject();
|
|
66
|
+
builder.requiredField(offset, 4); // value
|
|
67
|
+
return offset;
|
|
68
|
+
}
|
|
69
|
+
static createString(builder, valueOffset) {
|
|
70
|
+
String.startString(builder);
|
|
71
|
+
String.addValue(builder, valueOffset);
|
|
72
|
+
return String.endString(builder);
|
|
73
|
+
}
|
|
74
|
+
unpack() {
|
|
75
|
+
return new StringT(this.value());
|
|
76
|
+
}
|
|
77
|
+
unpackTo(_o) {
|
|
78
|
+
_o.value = this.value();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.String = String;
|
|
82
|
+
class StringT {
|
|
83
|
+
value;
|
|
84
|
+
constructor(value = null) {
|
|
85
|
+
this.value = value;
|
|
86
|
+
}
|
|
87
|
+
pack(builder) {
|
|
88
|
+
const value = (this.value !== null ? builder.createString(this.value) : 0);
|
|
89
|
+
return String.createString(builder, value);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.StringT = StringT;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/fbs/message/type.ts"],"names":[],"mappings":"AAEA,oBAAY,IAAI;IACd,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,YAAY,IAAI;IAChB,GAAG,IAAI;CACR"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Type = void 0;
|
|
5
|
+
var Type;
|
|
6
|
+
(function (Type) {
|
|
7
|
+
Type[Type["REQUEST"] = 0] = "REQUEST";
|
|
8
|
+
Type[Type["RESPONSE"] = 1] = "RESPONSE";
|
|
9
|
+
Type[Type["NOTIFICATION"] = 2] = "NOTIFICATION";
|
|
10
|
+
Type[Type["LOG"] = 3] = "LOG";
|
|
11
|
+
})(Type || (exports.Type = Type = {}));
|
|
@@ -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.Body = void 0;
|
|
5
|
+
exports.unionToBody = unionToBody;
|
|
6
|
+
exports.unionListToBody = unionListToBody;
|
|
7
|
+
const log_1 = require("../../fbs/log/log");
|
|
8
|
+
const notification_1 = require("../../fbs/notification-from-worker/notification");
|
|
9
|
+
const response_1 = require("../../fbs/response/response");
|
|
10
|
+
var Body;
|
|
11
|
+
(function (Body) {
|
|
12
|
+
Body[Body["NONE"] = 0] = "NONE";
|
|
13
|
+
Body[Body["Response"] = 1] = "Response";
|
|
14
|
+
Body[Body["Notification"] = 2] = "Notification";
|
|
15
|
+
Body[Body["Log"] = 3] = "Log";
|
|
16
|
+
})(Body || (exports.Body = Body = {}));
|
|
17
|
+
function unionToBody(type, accessor) {
|
|
18
|
+
switch (Body[type]) {
|
|
19
|
+
case 'NONE': return null;
|
|
20
|
+
case 'Response': return accessor(new response_1.Response());
|
|
21
|
+
case 'Notification': return accessor(new notification_1.Notification());
|
|
22
|
+
case 'Log': return accessor(new log_1.Log());
|
|
23
|
+
default: return null;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function unionListToBody(type, accessor, index) {
|
|
27
|
+
switch (Body[type]) {
|
|
28
|
+
case 'NONE': return null;
|
|
29
|
+
case 'Response': return accessor(index, new response_1.Response());
|
|
30
|
+
case 'Notification': return accessor(index, new notification_1.Notification());
|
|
31
|
+
case 'Log': return accessor(index, new log_1.Log());
|
|
32
|
+
default: return null;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -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,CAAC,EAAE,EAAC,WAAW,CAAC,UAAU,EAAE,GA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,GAAC,IAAW;IAIvD,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAQpD"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.MessageT = exports.Message = void 0;
|
|
38
|
+
const flatbuffers = __importStar(require("flatbuffers"));
|
|
39
|
+
const body_1 = require("../../fbs/message-from-worker/body");
|
|
40
|
+
class Message {
|
|
41
|
+
bb = null;
|
|
42
|
+
bb_pos = 0;
|
|
43
|
+
__init(i, bb) {
|
|
44
|
+
this.bb_pos = i;
|
|
45
|
+
this.bb = bb;
|
|
46
|
+
return this;
|
|
47
|
+
}
|
|
48
|
+
static getRootAsMessage(bb, obj) {
|
|
49
|
+
return (obj || new Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
50
|
+
}
|
|
51
|
+
static getSizePrefixedRootAsMessage(bb, obj) {
|
|
52
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
53
|
+
return (obj || new Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
54
|
+
}
|
|
55
|
+
dataType() {
|
|
56
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
57
|
+
return offset ? this.bb.readUint8(this.bb_pos + offset) : body_1.Body.NONE;
|
|
58
|
+
}
|
|
59
|
+
data(obj) {
|
|
60
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
61
|
+
return offset ? this.bb.__union(obj, this.bb_pos + offset) : null;
|
|
62
|
+
}
|
|
63
|
+
static startMessage(builder) {
|
|
64
|
+
builder.startObject(2);
|
|
65
|
+
}
|
|
66
|
+
static addDataType(builder, dataType) {
|
|
67
|
+
builder.addFieldInt8(0, dataType, body_1.Body.NONE);
|
|
68
|
+
}
|
|
69
|
+
static addData(builder, dataOffset) {
|
|
70
|
+
builder.addFieldOffset(1, dataOffset, 0);
|
|
71
|
+
}
|
|
72
|
+
static endMessage(builder) {
|
|
73
|
+
const offset = builder.endObject();
|
|
74
|
+
builder.requiredField(offset, 6); // data
|
|
75
|
+
return offset;
|
|
76
|
+
}
|
|
77
|
+
static finishMessageBuffer(builder, offset) {
|
|
78
|
+
builder.finish(offset);
|
|
79
|
+
}
|
|
80
|
+
static finishSizePrefixedMessageBuffer(builder, offset) {
|
|
81
|
+
builder.finish(offset, undefined, true);
|
|
82
|
+
}
|
|
83
|
+
static createMessage(builder, dataType, dataOffset) {
|
|
84
|
+
Message.startMessage(builder);
|
|
85
|
+
Message.addDataType(builder, dataType);
|
|
86
|
+
Message.addData(builder, dataOffset);
|
|
87
|
+
return Message.endMessage(builder);
|
|
88
|
+
}
|
|
89
|
+
unpack() {
|
|
90
|
+
return new MessageT(this.dataType(), (() => {
|
|
91
|
+
const temp = (0, body_1.unionToBody)(this.dataType(), this.data.bind(this));
|
|
92
|
+
if (temp === null) {
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
return temp.unpack();
|
|
96
|
+
})());
|
|
97
|
+
}
|
|
98
|
+
unpackTo(_o) {
|
|
99
|
+
_o.dataType = this.dataType();
|
|
100
|
+
_o.data = (() => {
|
|
101
|
+
const temp = (0, body_1.unionToBody)(this.dataType(), this.data.bind(this));
|
|
102
|
+
if (temp === null) {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
return temp.unpack();
|
|
106
|
+
})();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.Message = Message;
|
|
110
|
+
class MessageT {
|
|
111
|
+
dataType;
|
|
112
|
+
data;
|
|
113
|
+
constructor(dataType = body_1.Body.NONE, data = null) {
|
|
114
|
+
this.dataType = dataType;
|
|
115
|
+
this.data = data;
|
|
116
|
+
}
|
|
117
|
+
pack(builder) {
|
|
118
|
+
const data = builder.createObjectOffset(this.data);
|
|
119
|
+
return Message.createMessage(builder, this.dataType, data);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
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.Body = void 0;
|
|
5
|
+
exports.unionToBody = unionToBody;
|
|
6
|
+
exports.unionListToBody = unionListToBody;
|
|
7
|
+
const notification_1 = require("../../fbs/notification-to-worker/notification");
|
|
8
|
+
const request_1 = require("../../fbs/request/request");
|
|
9
|
+
var Body;
|
|
10
|
+
(function (Body) {
|
|
11
|
+
Body[Body["NONE"] = 0] = "NONE";
|
|
12
|
+
Body[Body["Request"] = 1] = "Request";
|
|
13
|
+
Body[Body["Notification"] = 2] = "Notification";
|
|
14
|
+
})(Body || (exports.Body = Body = {}));
|
|
15
|
+
function unionToBody(type, accessor) {
|
|
16
|
+
switch (Body[type]) {
|
|
17
|
+
case 'NONE': return null;
|
|
18
|
+
case 'Request': return accessor(new request_1.Request());
|
|
19
|
+
case 'Notification': return accessor(new notification_1.Notification());
|
|
20
|
+
default: return null;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function unionListToBody(type, accessor, index) {
|
|
24
|
+
switch (Body[type]) {
|
|
25
|
+
case 'NONE': return null;
|
|
26
|
+
case 'Request': return accessor(index, new request_1.Request());
|
|
27
|
+
case 'Notification': return accessor(index, new notification_1.Notification());
|
|
28
|
+
default: return null;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -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,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.MessageT = exports.Message = void 0;
|
|
38
|
+
const flatbuffers = __importStar(require("flatbuffers"));
|
|
39
|
+
const body_1 = require("../../fbs/message-to-worker/body");
|
|
40
|
+
class Message {
|
|
41
|
+
bb = null;
|
|
42
|
+
bb_pos = 0;
|
|
43
|
+
__init(i, bb) {
|
|
44
|
+
this.bb_pos = i;
|
|
45
|
+
this.bb = bb;
|
|
46
|
+
return this;
|
|
47
|
+
}
|
|
48
|
+
static getRootAsMessage(bb, obj) {
|
|
49
|
+
return (obj || new Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
50
|
+
}
|
|
51
|
+
static getSizePrefixedRootAsMessage(bb, obj) {
|
|
52
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
53
|
+
return (obj || new Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
54
|
+
}
|
|
55
|
+
dataType() {
|
|
56
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
57
|
+
return offset ? this.bb.readUint8(this.bb_pos + offset) : body_1.Body.NONE;
|
|
58
|
+
}
|
|
59
|
+
data(obj) {
|
|
60
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
61
|
+
return offset ? this.bb.__union(obj, this.bb_pos + offset) : null;
|
|
62
|
+
}
|
|
63
|
+
static startMessage(builder) {
|
|
64
|
+
builder.startObject(2);
|
|
65
|
+
}
|
|
66
|
+
static addDataType(builder, dataType) {
|
|
67
|
+
builder.addFieldInt8(0, dataType, body_1.Body.NONE);
|
|
68
|
+
}
|
|
69
|
+
static addData(builder, dataOffset) {
|
|
70
|
+
builder.addFieldOffset(1, dataOffset, 0);
|
|
71
|
+
}
|
|
72
|
+
static endMessage(builder) {
|
|
73
|
+
const offset = builder.endObject();
|
|
74
|
+
builder.requiredField(offset, 6); // data
|
|
75
|
+
return offset;
|
|
76
|
+
}
|
|
77
|
+
static finishMessageBuffer(builder, offset) {
|
|
78
|
+
builder.finish(offset);
|
|
79
|
+
}
|
|
80
|
+
static finishSizePrefixedMessageBuffer(builder, offset) {
|
|
81
|
+
builder.finish(offset, undefined, true);
|
|
82
|
+
}
|
|
83
|
+
static createMessage(builder, dataType, dataOffset) {
|
|
84
|
+
Message.startMessage(builder);
|
|
85
|
+
Message.addDataType(builder, dataType);
|
|
86
|
+
Message.addData(builder, dataOffset);
|
|
87
|
+
return Message.endMessage(builder);
|
|
88
|
+
}
|
|
89
|
+
unpack() {
|
|
90
|
+
return new MessageT(this.dataType(), (() => {
|
|
91
|
+
const temp = (0, body_1.unionToBody)(this.dataType(), this.data.bind(this));
|
|
92
|
+
if (temp === null) {
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
return temp.unpack();
|
|
96
|
+
})());
|
|
97
|
+
}
|
|
98
|
+
unpackTo(_o) {
|
|
99
|
+
_o.dataType = this.dataType();
|
|
100
|
+
_o.data = (() => {
|
|
101
|
+
const temp = (0, body_1.unionToBody)(this.dataType(), this.data.bind(this));
|
|
102
|
+
if (temp === null) {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
return temp.unpack();
|
|
106
|
+
})();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.Message = Message;
|
|
110
|
+
class MessageT {
|
|
111
|
+
dataType;
|
|
112
|
+
data;
|
|
113
|
+
constructor(dataType = body_1.Body.NONE, data = null) {
|
|
114
|
+
this.dataType = dataType;
|
|
115
|
+
this.data = data;
|
|
116
|
+
}
|
|
117
|
+
pack(builder) {
|
|
118
|
+
const data = builder.createObjectOffset(this.data);
|
|
119
|
+
return Message.createMessage(builder, this.dataType, data);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
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,2BAA2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