@formant/realtime-sdk 0.0.14 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/BaseClient.d.ts +3 -4
- package/dist/common/FormantBaseClient.d.ts +4 -1
- package/dist/common/LogApiTransport.d.ts +4 -2
- package/dist/common/LogClient.d.ts +1 -0
- package/dist/common/LogReporter.d.ts +8 -0
- package/dist/common/LruCache.d.ts +7 -2
- package/dist/common/StatsManager.d.ts +17 -15
- package/dist/common/StatsReporter.d.ts +16 -0
- package/dist/common/assertUnreachable.d.ts +1 -0
- package/dist/common/config/index.d.ts +2 -0
- package/dist/common/delay.d.ts +1 -1
- package/dist/common/filterIceServers.d.ts +8 -0
- package/dist/common/instanceId.d.ts +1 -0
- package/dist/common/isValidTagString.d.ts +1 -0
- package/dist/common/logger.d.ts +1 -1
- package/dist/common/stats.d.ts +1 -1
- package/dist/date-fns/parseIsoDate.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/model/IAdminSignupRequest.d.ts +1 -0
- package/dist/model/ILoginResult.d.ts +1 -0
- package/dist/model/IMetric.d.ts +7 -0
- package/dist/model/IRtcCreateSessionRequest.d.ts +1 -1
- package/dist/model/IRtcIceServer.d.ts +5 -0
- package/dist/model/IRtcInfo.d.ts +7 -0
- package/dist/model/IRtcSession.d.ts +2 -2
- package/dist/model/IStat.d.ts +1 -2
- package/dist/model/IUser.d.ts +1 -0
- package/dist/model/organizationPlans.d.ts +1 -1
- package/dist/model/rtcStreamTypes.d.ts +3 -1
- package/dist/protos/api/signaling/v1/signaling.proto +7 -0
- package/dist/protos/api/signaling/v1/signaling_grpc_pb.js +33 -0
- package/dist/protos/api/signaling/v1/signaling_grpc_web_pb.d.ts +12 -0
- package/dist/protos/api/signaling/v1/signaling_grpc_web_pb.js +80 -0
- package/dist/protos/api/signaling/v1/signaling_pb.d.ts +32 -0
- package/dist/protos/api/signaling/v1/signaling_pb.js +275 -0
- package/dist/realtime-sdk/src/index.d.ts +2 -2
- package/dist/rtc-client/RtcClient.d.ts +4 -2
- package/dist/rtc-client/RtcClientV1.d.ts +51 -0
- package/dist/rtc-client/RtcConnection.d.ts +10 -0
- package/dist/rtc-client/RtcConnectionV1.d.ts +72 -0
- package/dist/rtc-client/RtcSessionMetricsV1.d.ts +12 -0
- package/dist/rtc-client/gatherPingMetrics.d.ts +17 -0
- package/dist/rtc-client/models/IPingInfo.d.ts +10 -0
- package/dist/rtc-client/models/IPingPayload.d.ts +6 -0
- package/dist/rtc-client/models/IRtcClientConfiguration.d.ts +5 -5
- package/dist/rtc-client/models/IRtcStreamPayload.d.ts +3 -0
- package/dist/rtc-client/models-v1/IRtcClientConfigurationV1.d.ts +11 -0
- package/dist/rtc-client/models-v1/IRtcConnectionConfigurationV1.d.ts +12 -0
- package/dist/rtc-client/utils/createRtcStreamMessage.d.ts +1 -2
- package/dist/rtc-client/utils/encodeStreamId.d.ts +3 -0
- package/dist/rtc-client/utils/streamIsEqual.d.ts +2 -0
- package/dist/ui/utils/browser.d.ts +2 -0
- package/package.json +10 -4
- package/dist/common/LoggerReporter.d.ts +0 -9
- package/dist/model/IStatsReporter.d.ts +0 -6
- package/dist/rtc-client/models/IRtcConnectConfiguration.d.ts +0 -8
- package/dist/rtc-client/utils/getStreamId.d.ts +0 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RtcIceServerProtocol } from "./RtcIceServerProtocol";
|
|
2
|
+
import { RtcIceTransportPolicy } from "./RtcIceTransportPolicy";
|
|
3
|
+
export interface IRtcInfo {
|
|
4
|
+
rtcIceTransportPolicies?: RtcIceTransportPolicy[];
|
|
5
|
+
rtcIceServerProtocol?: RtcIceServerProtocol;
|
|
6
|
+
useAllServers?: boolean;
|
|
7
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IRtcPeerDescription } from "
|
|
2
|
-
import { Uuid } from "
|
|
1
|
+
import { IRtcPeerDescription } from "./IRtcPeerDescription";
|
|
2
|
+
import { Uuid } from "./Uuid";
|
|
3
3
|
import { IsoDate } from "./IsoDate";
|
|
4
4
|
export interface IRtcSession {
|
|
5
5
|
id: Uuid;
|
package/dist/model/IStat.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* An aggregation of samples collected during
|
|
2
|
+
* An aggregation of metric samples collected during a sample period.
|
|
3
3
|
*/
|
|
4
4
|
export interface IStat {
|
|
5
5
|
/**
|
|
@@ -18,5 +18,4 @@ export interface IStat {
|
|
|
18
18
|
* The count of sampled values.
|
|
19
19
|
*/
|
|
20
20
|
count: number;
|
|
21
|
-
[key: string]: number;
|
|
22
21
|
}
|
package/dist/model/IUser.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const organizationPlans: readonly ["
|
|
1
|
+
export declare const organizationPlans: readonly ["self-serve", "paid"];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const rtcPingStreamType: "ping";
|
|
2
2
|
export declare const rtcPongStreamType: "pong";
|
|
3
|
+
export declare const rtcPingV2StreamType: "ping-v2";
|
|
4
|
+
export declare const rtcPongV2StreamType: "pong-v2";
|
|
3
5
|
export declare const rtcStreamControlStreamType: "stream-control";
|
|
4
6
|
export declare const rtcStreamsInfoStreamType: "streams-info";
|
|
5
7
|
export declare const rtcAgentInfoStreamType: "agent-info";
|
|
@@ -18,6 +20,6 @@ export declare const rtcPointCloudStreamType: "point-cloud";
|
|
|
18
20
|
export declare const rtcMarkerArrayStreamType: "marker-array";
|
|
19
21
|
export declare const rtcPointStreamType: "point";
|
|
20
22
|
export declare const rtcJsonStringType: "json-string";
|
|
21
|
-
export declare const rtcStreamTypes: readonly ["ping", "pong", "stream-control", "streams-info", "agent-info", "numeric", "boolean", "bitset", "twist", "compressed-image", "h264-video-frame", "audio-chunk", "pose", "goal-id", "joint-state", "pose-with-covariance", "point-cloud", "point", "marker-array", "json-string"];
|
|
23
|
+
export declare const rtcStreamTypes: readonly ["ping", "pong", "ping-v2", "pong-v2", "stream-control", "streams-info", "agent-info", "numeric", "boolean", "bitset", "twist", "compressed-image", "h264-video-frame", "audio-chunk", "pose", "goal-id", "joint-state", "pose-with-covariance", "point-cloud", "point", "marker-array", "json-string"];
|
|
22
24
|
export declare const rtcImageStreamTypes: string[];
|
|
23
25
|
export declare const rtcSystemStreamTypes: string[];
|
|
@@ -6,6 +6,8 @@ import "google/protobuf/wrappers.proto";
|
|
|
6
6
|
option go_package = "github.com/FormantIO/genproto/go/v1/api/signaling";
|
|
7
7
|
|
|
8
8
|
service Signaling {
|
|
9
|
+
rpc GetHealth(GetHealthRequest)
|
|
10
|
+
returns (GetHealthResponse) {}
|
|
9
11
|
rpc CreatePeer(CreatePeerRequest)
|
|
10
12
|
returns (CreatePeerResponse) {}
|
|
11
13
|
rpc DeletePeer(DeletePeerRequest)
|
|
@@ -49,6 +51,11 @@ message Signal {
|
|
|
49
51
|
SessionType session_type = 8;
|
|
50
52
|
}
|
|
51
53
|
|
|
54
|
+
message GetHealthRequest {}
|
|
55
|
+
message GetHealthResponse {
|
|
56
|
+
string version = 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
52
59
|
message CreatePeerRequest {}
|
|
53
60
|
message CreatePeerResponse {
|
|
54
61
|
Peer peer = 1;
|
|
@@ -49,6 +49,28 @@ function deserialize_v1_signaling_api_DeletePeerResponse(buffer_arg) {
|
|
|
49
49
|
return protos_api_signaling_v1_signaling_pb.DeletePeerResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
function serialize_v1_signaling_api_GetHealthRequest(arg) {
|
|
53
|
+
if (!(arg instanceof protos_api_signaling_v1_signaling_pb.GetHealthRequest)) {
|
|
54
|
+
throw new Error('Expected argument of type v1.signaling.api.GetHealthRequest');
|
|
55
|
+
}
|
|
56
|
+
return Buffer.from(arg.serializeBinary());
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function deserialize_v1_signaling_api_GetHealthRequest(buffer_arg) {
|
|
60
|
+
return protos_api_signaling_v1_signaling_pb.GetHealthRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function serialize_v1_signaling_api_GetHealthResponse(arg) {
|
|
64
|
+
if (!(arg instanceof protos_api_signaling_v1_signaling_pb.GetHealthResponse)) {
|
|
65
|
+
throw new Error('Expected argument of type v1.signaling.api.GetHealthResponse');
|
|
66
|
+
}
|
|
67
|
+
return Buffer.from(arg.serializeBinary());
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function deserialize_v1_signaling_api_GetHealthResponse(buffer_arg) {
|
|
71
|
+
return protos_api_signaling_v1_signaling_pb.GetHealthResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
72
|
+
}
|
|
73
|
+
|
|
52
74
|
function serialize_v1_signaling_api_GetIceServersRequest(arg) {
|
|
53
75
|
if (!(arg instanceof protos_api_signaling_v1_signaling_pb.GetIceServersRequest)) {
|
|
54
76
|
throw new Error('Expected argument of type v1.signaling.api.GetIceServersRequest');
|
|
@@ -161,6 +183,17 @@ function deserialize_v1_signaling_api_SendSignalResponse(buffer_arg) {
|
|
|
161
183
|
|
|
162
184
|
|
|
163
185
|
var SignalingService = exports.SignalingService = {
|
|
186
|
+
getHealth: {
|
|
187
|
+
path: '/v1.signaling.api.Signaling/GetHealth',
|
|
188
|
+
requestStream: false,
|
|
189
|
+
responseStream: false,
|
|
190
|
+
requestType: protos_api_signaling_v1_signaling_pb.GetHealthRequest,
|
|
191
|
+
responseType: protos_api_signaling_v1_signaling_pb.GetHealthResponse,
|
|
192
|
+
requestSerialize: serialize_v1_signaling_api_GetHealthRequest,
|
|
193
|
+
requestDeserialize: deserialize_v1_signaling_api_GetHealthRequest,
|
|
194
|
+
responseSerialize: serialize_v1_signaling_api_GetHealthResponse,
|
|
195
|
+
responseDeserialize: deserialize_v1_signaling_api_GetHealthResponse,
|
|
196
|
+
},
|
|
164
197
|
createPeer: {
|
|
165
198
|
path: '/v1.signaling.api.Signaling/CreatePeer',
|
|
166
199
|
requestStream: false,
|
|
@@ -8,6 +8,13 @@ export class SignalingClient {
|
|
|
8
8
|
credentials?: null | { [index: string]: string; },
|
|
9
9
|
options?: null | { [index: string]: any; });
|
|
10
10
|
|
|
11
|
+
getHealth(
|
|
12
|
+
request: protos_api_signaling_v1_signaling_pb.GetHealthRequest,
|
|
13
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
14
|
+
callback: (err: grpcWeb.Error,
|
|
15
|
+
response: protos_api_signaling_v1_signaling_pb.GetHealthResponse) => void
|
|
16
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.GetHealthResponse>;
|
|
17
|
+
|
|
11
18
|
createPeer(
|
|
12
19
|
request: protos_api_signaling_v1_signaling_pb.CreatePeerRequest,
|
|
13
20
|
metadata: grpcWeb.Metadata | undefined,
|
|
@@ -62,6 +69,11 @@ export class SignalingPromiseClient {
|
|
|
62
69
|
credentials?: null | { [index: string]: string; },
|
|
63
70
|
options?: null | { [index: string]: any; });
|
|
64
71
|
|
|
72
|
+
getHealth(
|
|
73
|
+
request: protos_api_signaling_v1_signaling_pb.GetHealthRequest,
|
|
74
|
+
metadata?: grpcWeb.Metadata
|
|
75
|
+
): Promise<protos_api_signaling_v1_signaling_pb.GetHealthResponse>;
|
|
76
|
+
|
|
65
77
|
createPeer(
|
|
66
78
|
request: protos_api_signaling_v1_signaling_pb.CreatePeerRequest,
|
|
67
79
|
metadata?: grpcWeb.Metadata
|
|
@@ -74,6 +74,86 @@ proto.v1.signaling.api.SignalingPromiseClient =
|
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
|
|
77
|
+
/**
|
|
78
|
+
* @const
|
|
79
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
80
|
+
* !proto.v1.signaling.api.GetHealthRequest,
|
|
81
|
+
* !proto.v1.signaling.api.GetHealthResponse>}
|
|
82
|
+
*/
|
|
83
|
+
const methodDescriptor_Signaling_GetHealth = new grpc.web.MethodDescriptor(
|
|
84
|
+
'/v1.signaling.api.Signaling/GetHealth',
|
|
85
|
+
grpc.web.MethodType.UNARY,
|
|
86
|
+
proto.v1.signaling.api.GetHealthRequest,
|
|
87
|
+
proto.v1.signaling.api.GetHealthResponse,
|
|
88
|
+
/**
|
|
89
|
+
* @param {!proto.v1.signaling.api.GetHealthRequest} request
|
|
90
|
+
* @return {!Uint8Array}
|
|
91
|
+
*/
|
|
92
|
+
function(request) {
|
|
93
|
+
return request.serializeBinary();
|
|
94
|
+
},
|
|
95
|
+
proto.v1.signaling.api.GetHealthResponse.deserializeBinary
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @const
|
|
101
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
102
|
+
* !proto.v1.signaling.api.GetHealthRequest,
|
|
103
|
+
* !proto.v1.signaling.api.GetHealthResponse>}
|
|
104
|
+
*/
|
|
105
|
+
const methodInfo_Signaling_GetHealth = new grpc.web.AbstractClientBase.MethodInfo(
|
|
106
|
+
proto.v1.signaling.api.GetHealthResponse,
|
|
107
|
+
/**
|
|
108
|
+
* @param {!proto.v1.signaling.api.GetHealthRequest} request
|
|
109
|
+
* @return {!Uint8Array}
|
|
110
|
+
*/
|
|
111
|
+
function(request) {
|
|
112
|
+
return request.serializeBinary();
|
|
113
|
+
},
|
|
114
|
+
proto.v1.signaling.api.GetHealthResponse.deserializeBinary
|
|
115
|
+
);
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @param {!proto.v1.signaling.api.GetHealthRequest} request The
|
|
120
|
+
* request proto
|
|
121
|
+
* @param {?Object<string, string>} metadata User defined
|
|
122
|
+
* call metadata
|
|
123
|
+
* @param {function(?grpc.web.Error, ?proto.v1.signaling.api.GetHealthResponse)}
|
|
124
|
+
* callback The callback function(error, response)
|
|
125
|
+
* @return {!grpc.web.ClientReadableStream<!proto.v1.signaling.api.GetHealthResponse>|undefined}
|
|
126
|
+
* The XHR Node Readable Stream
|
|
127
|
+
*/
|
|
128
|
+
proto.v1.signaling.api.SignalingClient.prototype.getHealth =
|
|
129
|
+
function(request, metadata, callback) {
|
|
130
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
131
|
+
'/v1.signaling.api.Signaling/GetHealth',
|
|
132
|
+
request,
|
|
133
|
+
metadata || {},
|
|
134
|
+
methodDescriptor_Signaling_GetHealth,
|
|
135
|
+
callback);
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @param {!proto.v1.signaling.api.GetHealthRequest} request The
|
|
141
|
+
* request proto
|
|
142
|
+
* @param {?Object<string, string>} metadata User defined
|
|
143
|
+
* call metadata
|
|
144
|
+
* @return {!Promise<!proto.v1.signaling.api.GetHealthResponse>}
|
|
145
|
+
* Promise that resolves to the response
|
|
146
|
+
*/
|
|
147
|
+
proto.v1.signaling.api.SignalingPromiseClient.prototype.getHealth =
|
|
148
|
+
function(request, metadata) {
|
|
149
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
150
|
+
'/v1.signaling.api.Signaling/GetHealth',
|
|
151
|
+
request,
|
|
152
|
+
metadata || {},
|
|
153
|
+
methodDescriptor_Signaling_GetHealth);
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
|
|
77
157
|
/**
|
|
78
158
|
* @const
|
|
79
159
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -99,6 +99,38 @@ export namespace Signal {
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
+
export class GetHealthRequest extends jspb.Message {
|
|
103
|
+
serializeBinary(): Uint8Array;
|
|
104
|
+
toObject(includeInstance?: boolean): GetHealthRequest.AsObject;
|
|
105
|
+
static toObject(includeInstance: boolean, msg: GetHealthRequest): GetHealthRequest.AsObject;
|
|
106
|
+
static serializeBinaryToWriter(message: GetHealthRequest, writer: jspb.BinaryWriter): void;
|
|
107
|
+
static deserializeBinary(bytes: Uint8Array): GetHealthRequest;
|
|
108
|
+
static deserializeBinaryFromReader(message: GetHealthRequest, reader: jspb.BinaryReader): GetHealthRequest;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export namespace GetHealthRequest {
|
|
112
|
+
export type AsObject = {
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export class GetHealthResponse extends jspb.Message {
|
|
117
|
+
getVersion(): string;
|
|
118
|
+
setVersion(value: string): GetHealthResponse;
|
|
119
|
+
|
|
120
|
+
serializeBinary(): Uint8Array;
|
|
121
|
+
toObject(includeInstance?: boolean): GetHealthResponse.AsObject;
|
|
122
|
+
static toObject(includeInstance: boolean, msg: GetHealthResponse): GetHealthResponse.AsObject;
|
|
123
|
+
static serializeBinaryToWriter(message: GetHealthResponse, writer: jspb.BinaryWriter): void;
|
|
124
|
+
static deserializeBinary(bytes: Uint8Array): GetHealthResponse;
|
|
125
|
+
static deserializeBinaryFromReader(message: GetHealthResponse, reader: jspb.BinaryReader): GetHealthResponse;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export namespace GetHealthResponse {
|
|
129
|
+
export type AsObject = {
|
|
130
|
+
version: string,
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
102
134
|
export class CreatePeerRequest extends jspb.Message {
|
|
103
135
|
serializeBinary(): Uint8Array;
|
|
104
136
|
toObject(includeInstance?: boolean): CreatePeerRequest.AsObject;
|
|
@@ -21,6 +21,8 @@ goog.exportSymbol('proto.v1.signaling.api.CreatePeerRequest', null, global);
|
|
|
21
21
|
goog.exportSymbol('proto.v1.signaling.api.CreatePeerResponse', null, global);
|
|
22
22
|
goog.exportSymbol('proto.v1.signaling.api.DeletePeerRequest', null, global);
|
|
23
23
|
goog.exportSymbol('proto.v1.signaling.api.DeletePeerResponse', null, global);
|
|
24
|
+
goog.exportSymbol('proto.v1.signaling.api.GetHealthRequest', null, global);
|
|
25
|
+
goog.exportSymbol('proto.v1.signaling.api.GetHealthResponse', null, global);
|
|
24
26
|
goog.exportSymbol('proto.v1.signaling.api.GetIceServersRequest', null, global);
|
|
25
27
|
goog.exportSymbol('proto.v1.signaling.api.GetIceServersResponse', null, global);
|
|
26
28
|
goog.exportSymbol('proto.v1.signaling.api.GetPeersRequest', null, global);
|
|
@@ -76,6 +78,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
76
78
|
*/
|
|
77
79
|
proto.v1.signaling.api.Signal.displayName = 'proto.v1.signaling.api.Signal';
|
|
78
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* Generated by JsPbCodeGenerator.
|
|
83
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
84
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
85
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
86
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
87
|
+
* valid.
|
|
88
|
+
* @extends {jspb.Message}
|
|
89
|
+
* @constructor
|
|
90
|
+
*/
|
|
91
|
+
proto.v1.signaling.api.GetHealthRequest = function(opt_data) {
|
|
92
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
93
|
+
};
|
|
94
|
+
goog.inherits(proto.v1.signaling.api.GetHealthRequest, jspb.Message);
|
|
95
|
+
if (goog.DEBUG && !COMPILED) {
|
|
96
|
+
/**
|
|
97
|
+
* @public
|
|
98
|
+
* @override
|
|
99
|
+
*/
|
|
100
|
+
proto.v1.signaling.api.GetHealthRequest.displayName = 'proto.v1.signaling.api.GetHealthRequest';
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Generated by JsPbCodeGenerator.
|
|
104
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
105
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
106
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
107
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
108
|
+
* valid.
|
|
109
|
+
* @extends {jspb.Message}
|
|
110
|
+
* @constructor
|
|
111
|
+
*/
|
|
112
|
+
proto.v1.signaling.api.GetHealthResponse = function(opt_data) {
|
|
113
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
114
|
+
};
|
|
115
|
+
goog.inherits(proto.v1.signaling.api.GetHealthResponse, jspb.Message);
|
|
116
|
+
if (goog.DEBUG && !COMPILED) {
|
|
117
|
+
/**
|
|
118
|
+
* @public
|
|
119
|
+
* @override
|
|
120
|
+
*/
|
|
121
|
+
proto.v1.signaling.api.GetHealthResponse.displayName = 'proto.v1.signaling.api.GetHealthResponse';
|
|
122
|
+
}
|
|
79
123
|
/**
|
|
80
124
|
* Generated by JsPbCodeGenerator.
|
|
81
125
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1124,6 +1168,237 @@ proto.v1.signaling.api.Signal.prototype.setSessionType = function(value) {
|
|
|
1124
1168
|
|
|
1125
1169
|
|
|
1126
1170
|
|
|
1171
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1172
|
+
/**
|
|
1173
|
+
* Creates an object representation of this proto.
|
|
1174
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1175
|
+
* Optional fields that are not set will be set to undefined.
|
|
1176
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1177
|
+
* For the list of reserved names please see:
|
|
1178
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1179
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1180
|
+
* JSPB instance for transitional soy proto support:
|
|
1181
|
+
* http://goto/soy-param-migration
|
|
1182
|
+
* @return {!Object}
|
|
1183
|
+
*/
|
|
1184
|
+
proto.v1.signaling.api.GetHealthRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1185
|
+
return proto.v1.signaling.api.GetHealthRequest.toObject(opt_includeInstance, this);
|
|
1186
|
+
};
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* Static version of the {@see toObject} method.
|
|
1191
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1192
|
+
* the JSPB instance for transitional soy proto support:
|
|
1193
|
+
* http://goto/soy-param-migration
|
|
1194
|
+
* @param {!proto.v1.signaling.api.GetHealthRequest} msg The msg instance to transform.
|
|
1195
|
+
* @return {!Object}
|
|
1196
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1197
|
+
*/
|
|
1198
|
+
proto.v1.signaling.api.GetHealthRequest.toObject = function(includeInstance, msg) {
|
|
1199
|
+
var f, obj = {
|
|
1200
|
+
|
|
1201
|
+
};
|
|
1202
|
+
|
|
1203
|
+
if (includeInstance) {
|
|
1204
|
+
obj.$jspbMessageInstance = msg;
|
|
1205
|
+
}
|
|
1206
|
+
return obj;
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
/**
|
|
1212
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1213
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1214
|
+
* @return {!proto.v1.signaling.api.GetHealthRequest}
|
|
1215
|
+
*/
|
|
1216
|
+
proto.v1.signaling.api.GetHealthRequest.deserializeBinary = function(bytes) {
|
|
1217
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1218
|
+
var msg = new proto.v1.signaling.api.GetHealthRequest;
|
|
1219
|
+
return proto.v1.signaling.api.GetHealthRequest.deserializeBinaryFromReader(msg, reader);
|
|
1220
|
+
};
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1225
|
+
* given reader into the given message object.
|
|
1226
|
+
* @param {!proto.v1.signaling.api.GetHealthRequest} msg The message object to deserialize into.
|
|
1227
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1228
|
+
* @return {!proto.v1.signaling.api.GetHealthRequest}
|
|
1229
|
+
*/
|
|
1230
|
+
proto.v1.signaling.api.GetHealthRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1231
|
+
while (reader.nextField()) {
|
|
1232
|
+
if (reader.isEndGroup()) {
|
|
1233
|
+
break;
|
|
1234
|
+
}
|
|
1235
|
+
var field = reader.getFieldNumber();
|
|
1236
|
+
switch (field) {
|
|
1237
|
+
default:
|
|
1238
|
+
reader.skipField();
|
|
1239
|
+
break;
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
return msg;
|
|
1243
|
+
};
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
/**
|
|
1247
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1248
|
+
* @return {!Uint8Array}
|
|
1249
|
+
*/
|
|
1250
|
+
proto.v1.signaling.api.GetHealthRequest.prototype.serializeBinary = function() {
|
|
1251
|
+
var writer = new jspb.BinaryWriter();
|
|
1252
|
+
proto.v1.signaling.api.GetHealthRequest.serializeBinaryToWriter(this, writer);
|
|
1253
|
+
return writer.getResultBuffer();
|
|
1254
|
+
};
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1259
|
+
* format), writing to the given BinaryWriter.
|
|
1260
|
+
* @param {!proto.v1.signaling.api.GetHealthRequest} message
|
|
1261
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1262
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1263
|
+
*/
|
|
1264
|
+
proto.v1.signaling.api.GetHealthRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1265
|
+
var f = undefined;
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1273
|
+
/**
|
|
1274
|
+
* Creates an object representation of this proto.
|
|
1275
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1276
|
+
* Optional fields that are not set will be set to undefined.
|
|
1277
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1278
|
+
* For the list of reserved names please see:
|
|
1279
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1280
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1281
|
+
* JSPB instance for transitional soy proto support:
|
|
1282
|
+
* http://goto/soy-param-migration
|
|
1283
|
+
* @return {!Object}
|
|
1284
|
+
*/
|
|
1285
|
+
proto.v1.signaling.api.GetHealthResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1286
|
+
return proto.v1.signaling.api.GetHealthResponse.toObject(opt_includeInstance, this);
|
|
1287
|
+
};
|
|
1288
|
+
|
|
1289
|
+
|
|
1290
|
+
/**
|
|
1291
|
+
* Static version of the {@see toObject} method.
|
|
1292
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1293
|
+
* the JSPB instance for transitional soy proto support:
|
|
1294
|
+
* http://goto/soy-param-migration
|
|
1295
|
+
* @param {!proto.v1.signaling.api.GetHealthResponse} msg The msg instance to transform.
|
|
1296
|
+
* @return {!Object}
|
|
1297
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1298
|
+
*/
|
|
1299
|
+
proto.v1.signaling.api.GetHealthResponse.toObject = function(includeInstance, msg) {
|
|
1300
|
+
var f, obj = {
|
|
1301
|
+
version: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1302
|
+
};
|
|
1303
|
+
|
|
1304
|
+
if (includeInstance) {
|
|
1305
|
+
obj.$jspbMessageInstance = msg;
|
|
1306
|
+
}
|
|
1307
|
+
return obj;
|
|
1308
|
+
};
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
/**
|
|
1313
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1314
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1315
|
+
* @return {!proto.v1.signaling.api.GetHealthResponse}
|
|
1316
|
+
*/
|
|
1317
|
+
proto.v1.signaling.api.GetHealthResponse.deserializeBinary = function(bytes) {
|
|
1318
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1319
|
+
var msg = new proto.v1.signaling.api.GetHealthResponse;
|
|
1320
|
+
return proto.v1.signaling.api.GetHealthResponse.deserializeBinaryFromReader(msg, reader);
|
|
1321
|
+
};
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1326
|
+
* given reader into the given message object.
|
|
1327
|
+
* @param {!proto.v1.signaling.api.GetHealthResponse} msg The message object to deserialize into.
|
|
1328
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1329
|
+
* @return {!proto.v1.signaling.api.GetHealthResponse}
|
|
1330
|
+
*/
|
|
1331
|
+
proto.v1.signaling.api.GetHealthResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1332
|
+
while (reader.nextField()) {
|
|
1333
|
+
if (reader.isEndGroup()) {
|
|
1334
|
+
break;
|
|
1335
|
+
}
|
|
1336
|
+
var field = reader.getFieldNumber();
|
|
1337
|
+
switch (field) {
|
|
1338
|
+
case 1:
|
|
1339
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1340
|
+
msg.setVersion(value);
|
|
1341
|
+
break;
|
|
1342
|
+
default:
|
|
1343
|
+
reader.skipField();
|
|
1344
|
+
break;
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
return msg;
|
|
1348
|
+
};
|
|
1349
|
+
|
|
1350
|
+
|
|
1351
|
+
/**
|
|
1352
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1353
|
+
* @return {!Uint8Array}
|
|
1354
|
+
*/
|
|
1355
|
+
proto.v1.signaling.api.GetHealthResponse.prototype.serializeBinary = function() {
|
|
1356
|
+
var writer = new jspb.BinaryWriter();
|
|
1357
|
+
proto.v1.signaling.api.GetHealthResponse.serializeBinaryToWriter(this, writer);
|
|
1358
|
+
return writer.getResultBuffer();
|
|
1359
|
+
};
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1364
|
+
* format), writing to the given BinaryWriter.
|
|
1365
|
+
* @param {!proto.v1.signaling.api.GetHealthResponse} message
|
|
1366
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1367
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1368
|
+
*/
|
|
1369
|
+
proto.v1.signaling.api.GetHealthResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1370
|
+
var f = undefined;
|
|
1371
|
+
f = message.getVersion();
|
|
1372
|
+
if (f.length > 0) {
|
|
1373
|
+
writer.writeString(
|
|
1374
|
+
1,
|
|
1375
|
+
f
|
|
1376
|
+
);
|
|
1377
|
+
}
|
|
1378
|
+
};
|
|
1379
|
+
|
|
1380
|
+
|
|
1381
|
+
/**
|
|
1382
|
+
* optional string version = 1;
|
|
1383
|
+
* @return {string}
|
|
1384
|
+
*/
|
|
1385
|
+
proto.v1.signaling.api.GetHealthResponse.prototype.getVersion = function() {
|
|
1386
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1387
|
+
};
|
|
1388
|
+
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* @param {string} value
|
|
1392
|
+
* @return {!proto.v1.signaling.api.GetHealthResponse} returns this
|
|
1393
|
+
*/
|
|
1394
|
+
proto.v1.signaling.api.GetHealthResponse.prototype.setVersion = function(value) {
|
|
1395
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1396
|
+
};
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
|
|
1400
|
+
|
|
1401
|
+
|
|
1127
1402
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1128
1403
|
/**
|
|
1129
1404
|
* Creates an object representation of this proto.
|
|
@@ -3,14 +3,14 @@ export { RtcSignalingClient } from "../../client/RtcSignalingClient";
|
|
|
3
3
|
export { Credentials } from "../../common/Credentials";
|
|
4
4
|
export { IRtcStream } from "../../model/IRtcStream";
|
|
5
5
|
export { SignalingPromiseClient } from "../../protos/api/signaling/v1/signaling_grpc_web_pb";
|
|
6
|
+
export { IRtcClientConfigurationV1 } from "../../rtc-client/models-v1/IRtcClientConfigurationV1";
|
|
6
7
|
export { IRtcClientConfiguration } from "../../rtc-client/models/IRtcClientConfiguration";
|
|
7
|
-
export { IRtcConnectConfiguration } from "../../rtc-client/models/IRtcConnectConfiguration";
|
|
8
8
|
export { IRtcConnectionStatsInfo } from "../../rtc-client/models/IRtcConnectionStatsInfo";
|
|
9
9
|
export { IRtcSendConfiguration } from "../../rtc-client/models/IRtcSendConfiguration";
|
|
10
10
|
export { IRtcSessionMetricsMessageCounts } from "../../rtc-client/models/IRtcSessionMetricsMessageCounts";
|
|
11
11
|
export { IRtcStreamMessage } from "../../rtc-client/models/IRtcStreamMessage";
|
|
12
|
-
export { IRtcStreamMessageHeader } from "../../rtc-client/models/IRtcStreamMessageHeader";
|
|
13
12
|
export { IRtcStreamPayload } from "../../rtc-client/models/IRtcStreamPayload";
|
|
14
13
|
export { IStreamControl } from "../../rtc-client/models/IStreamControl";
|
|
15
14
|
export { RtcClient } from "../../rtc-client/RtcClient";
|
|
15
|
+
export { RtcClientV1 } from "../../rtc-client/RtcClientV1";
|
|
16
16
|
export { createRtcStreamMessage } from "../../rtc-client/utils/createRtcStreamMessage";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { IRtcInfo } from "../model/IRtcInfo";
|
|
1
2
|
import { IRtcPeer } from "../model/IRtcPeer";
|
|
2
3
|
import { RtcConnectionStatus } from "../model/RtcConnectionStatus";
|
|
3
4
|
import { Timestamp } from "../model/Timestamp";
|
|
4
5
|
import { Uuid } from "../model/Uuid";
|
|
6
|
+
import { IPingInfo } from "./models/IPingInfo";
|
|
5
7
|
import { IRtcClientConfiguration } from "./models/IRtcClientConfiguration";
|
|
6
|
-
import { IRtcConnectConfiguration } from "./models/IRtcConnectConfiguration";
|
|
7
8
|
import { IRtcConnectionStatsInfo } from "./models/IRtcConnectionStatsInfo";
|
|
8
9
|
import { IRtcSendConfiguration } from "./models/IRtcSendConfiguration";
|
|
9
10
|
import { IRtcSessionMetricsMessageCounts } from "./models/IRtcSessionMetricsMessageCounts";
|
|
@@ -36,7 +37,7 @@ export declare class RtcClient {
|
|
|
36
37
|
* Connects to a peer given its id.
|
|
37
38
|
* Returns the id of the session, if one is created.
|
|
38
39
|
*/
|
|
39
|
-
connect(remotePeerId: Uuid,
|
|
40
|
+
connect(remotePeerId: Uuid, rtcInfo?: IRtcInfo): Promise<Uuid | undefined>;
|
|
40
41
|
connectLan(agentEndpoint: string): Promise<Uuid | false>;
|
|
41
42
|
getConnections(): RtcConnection[];
|
|
42
43
|
createCustomDataChannel(remotePeerId: Uuid, channelName: string, init: RTCDataChannelInit, isBinary: boolean, listener: (peerId: Uuid, channel: RTCDataChannel) => void): () => void;
|
|
@@ -49,6 +50,7 @@ export declare class RtcClient {
|
|
|
49
50
|
[key in string]: string[];
|
|
50
51
|
}>;
|
|
51
52
|
getPing(remotePeerId: Uuid): number | undefined;
|
|
53
|
+
getPingInfo(remotePeerId: Uuid): IPingInfo | undefined;
|
|
52
54
|
getLastMessageTimestamp(remotePeerId: Uuid): Timestamp | undefined;
|
|
53
55
|
getSessionMetricsMessageCounts(remotePeerId: Uuid): IRtcSessionMetricsMessageCounts | undefined;
|
|
54
56
|
isReady(): boolean;
|