@formant/realtime-sdk 0.0.17 → 0.0.19
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.
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
load("@rules_proto//proto:defs.bzl", "proto_library")
|
|
2
|
+
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
3
|
+
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
|
|
4
|
+
|
|
5
|
+
proto_library(
|
|
6
|
+
name = "signaling_proto",
|
|
7
|
+
srcs = ["signaling.proto"],
|
|
8
|
+
visibility = ["//visibility:public"],
|
|
9
|
+
deps = ["@com_google_protobuf//:wrappers_proto"],
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
go_proto_library(
|
|
13
|
+
name = "signaling_go_proto",
|
|
14
|
+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
|
|
15
|
+
importpath = "github.com/FormantIO/genproto/go/v1/api/signaling",
|
|
16
|
+
proto = ":signaling_proto",
|
|
17
|
+
visibility = ["//visibility:public"],
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
go_library(
|
|
21
|
+
name = "signaling",
|
|
22
|
+
embed = [":signaling_go_proto"],
|
|
23
|
+
importpath = "github.com/FormantIO/genproto/go/v1/api/signaling",
|
|
24
|
+
visibility = ["//visibility:public"],
|
|
25
|
+
)
|
|
@@ -1,113 +1,127 @@
|
|
|
1
|
-
import * as grpcWeb from
|
|
2
|
-
|
|
3
|
-
import * as protos_api_signaling_v1_signaling_pb from '../../../../protos/api/signaling/v1/signaling_pb';
|
|
1
|
+
import * as grpcWeb from "grpc-web";
|
|
4
2
|
|
|
3
|
+
import * as protos_api_signaling_v1_signaling_pb from "../../../../protos/api/signaling/v1/signaling_pb";
|
|
5
4
|
|
|
6
5
|
export class SignalingClient {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
6
|
+
constructor(
|
|
7
|
+
hostname: string,
|
|
8
|
+
credentials?: null | { [index: string]: string },
|
|
9
|
+
options?: null | { [index: string]: any }
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
getHealth(
|
|
13
|
+
request: protos_api_signaling_v1_signaling_pb.GetHealthRequest,
|
|
14
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
15
|
+
callback: (
|
|
16
|
+
err: grpcWeb.RpcError,
|
|
17
|
+
response: protos_api_signaling_v1_signaling_pb.GetHealthResponse
|
|
18
|
+
) => void
|
|
19
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.GetHealthResponse>;
|
|
20
|
+
|
|
21
|
+
createPeer(
|
|
22
|
+
request: protos_api_signaling_v1_signaling_pb.CreatePeerRequest,
|
|
23
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
24
|
+
callback: (
|
|
25
|
+
err: grpcWeb.RpcError,
|
|
26
|
+
response: protos_api_signaling_v1_signaling_pb.CreatePeerResponse
|
|
27
|
+
) => void
|
|
28
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.CreatePeerResponse>;
|
|
29
|
+
|
|
30
|
+
deletePeer(
|
|
31
|
+
request: protos_api_signaling_v1_signaling_pb.DeletePeerRequest,
|
|
32
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
33
|
+
callback: (
|
|
34
|
+
err: grpcWeb.RpcError,
|
|
35
|
+
response: protos_api_signaling_v1_signaling_pb.DeletePeerResponse
|
|
36
|
+
) => void
|
|
37
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.DeletePeerResponse>;
|
|
38
|
+
|
|
39
|
+
refreshPeer(
|
|
40
|
+
request: protos_api_signaling_v1_signaling_pb.RefreshPeerRequest,
|
|
41
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
42
|
+
callback: (
|
|
43
|
+
err: grpcWeb.RpcError,
|
|
44
|
+
response: protos_api_signaling_v1_signaling_pb.RefreshPeerResponse
|
|
45
|
+
) => void
|
|
46
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.RefreshPeerResponse>;
|
|
47
|
+
|
|
48
|
+
getPeers(
|
|
49
|
+
request: protos_api_signaling_v1_signaling_pb.GetPeersRequest,
|
|
50
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
51
|
+
callback: (
|
|
52
|
+
err: grpcWeb.RpcError,
|
|
53
|
+
response: protos_api_signaling_v1_signaling_pb.GetPeersResponse
|
|
54
|
+
) => void
|
|
55
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.GetPeersResponse>;
|
|
56
|
+
|
|
57
|
+
getIceServers(
|
|
58
|
+
request: protos_api_signaling_v1_signaling_pb.GetIceServersRequest,
|
|
59
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
60
|
+
callback: (
|
|
61
|
+
err: grpcWeb.RpcError,
|
|
62
|
+
response: protos_api_signaling_v1_signaling_pb.GetIceServersResponse
|
|
63
|
+
) => void
|
|
64
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.GetIceServersResponse>;
|
|
65
|
+
|
|
66
|
+
sendSignal(
|
|
67
|
+
request: protos_api_signaling_v1_signaling_pb.SendSignalRequest,
|
|
68
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
69
|
+
callback: (
|
|
70
|
+
err: grpcWeb.RpcError,
|
|
71
|
+
response: protos_api_signaling_v1_signaling_pb.SendSignalResponse
|
|
72
|
+
) => void
|
|
73
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.SendSignalResponse>;
|
|
74
|
+
|
|
75
|
+
receiveSignalStream(
|
|
76
|
+
request: protos_api_signaling_v1_signaling_pb.ReceiveSignalStreamRequest,
|
|
77
|
+
metadata?: grpcWeb.Metadata
|
|
78
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.ReceiveSignalStreamResponse>;
|
|
65
79
|
}
|
|
66
80
|
|
|
67
81
|
export class SignalingPromiseClient {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
82
|
+
constructor(
|
|
83
|
+
hostname: string,
|
|
84
|
+
credentials?: null | { [index: string]: string },
|
|
85
|
+
options?: null | { [index: string]: any }
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
getHealth(
|
|
89
|
+
request: protos_api_signaling_v1_signaling_pb.GetHealthRequest,
|
|
90
|
+
metadata?: grpcWeb.Metadata
|
|
91
|
+
): Promise<protos_api_signaling_v1_signaling_pb.GetHealthResponse>;
|
|
92
|
+
|
|
93
|
+
createPeer(
|
|
94
|
+
request: protos_api_signaling_v1_signaling_pb.CreatePeerRequest,
|
|
95
|
+
metadata?: grpcWeb.Metadata
|
|
96
|
+
): Promise<protos_api_signaling_v1_signaling_pb.CreatePeerResponse>;
|
|
97
|
+
|
|
98
|
+
deletePeer(
|
|
99
|
+
request: protos_api_signaling_v1_signaling_pb.DeletePeerRequest,
|
|
100
|
+
metadata?: grpcWeb.Metadata
|
|
101
|
+
): Promise<protos_api_signaling_v1_signaling_pb.DeletePeerResponse>;
|
|
102
|
+
|
|
103
|
+
refreshPeer(
|
|
104
|
+
request: protos_api_signaling_v1_signaling_pb.RefreshPeerRequest,
|
|
105
|
+
metadata?: grpcWeb.Metadata
|
|
106
|
+
): Promise<protos_api_signaling_v1_signaling_pb.RefreshPeerResponse>;
|
|
107
|
+
|
|
108
|
+
getPeers(
|
|
109
|
+
request: protos_api_signaling_v1_signaling_pb.GetPeersRequest,
|
|
110
|
+
metadata?: grpcWeb.Metadata
|
|
111
|
+
): Promise<protos_api_signaling_v1_signaling_pb.GetPeersResponse>;
|
|
112
|
+
|
|
113
|
+
getIceServers(
|
|
114
|
+
request: protos_api_signaling_v1_signaling_pb.GetIceServersRequest,
|
|
115
|
+
metadata?: grpcWeb.Metadata
|
|
116
|
+
): Promise<protos_api_signaling_v1_signaling_pb.GetIceServersResponse>;
|
|
117
|
+
|
|
118
|
+
sendSignal(
|
|
119
|
+
request: protos_api_signaling_v1_signaling_pb.SendSignalRequest,
|
|
120
|
+
metadata?: grpcWeb.Metadata
|
|
121
|
+
): Promise<protos_api_signaling_v1_signaling_pb.SendSignalResponse>;
|
|
122
|
+
|
|
123
|
+
receiveSignalStream(
|
|
124
|
+
request: protos_api_signaling_v1_signaling_pb.ReceiveSignalStreamRequest,
|
|
125
|
+
metadata?: grpcWeb.Metadata
|
|
126
|
+
): grpcWeb.ClientReadableStream<protos_api_signaling_v1_signaling_pb.ReceiveSignalStreamResponse>;
|
|
112
127
|
}
|
|
113
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formant/realtime-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/realtime-sdk/src/index.d.ts",
|
|
@@ -12,12 +12,11 @@
|
|
|
12
12
|
"compile": "tsc",
|
|
13
13
|
"build": "yarn make-protos && env $(grep -v '^#' src/config/production.env) webpack",
|
|
14
14
|
"postbuild": "tsc --emitDeclarationOnly --declaration --declarationDir ./dist --skipLibCheck && tsc-alias",
|
|
15
|
-
"prepublishOnly": "yarn clean && yarn build",
|
|
16
15
|
"make-protos": "cd ../../../ && make protos && cd -"
|
|
17
16
|
},
|
|
18
17
|
"dependencies": {
|
|
19
18
|
"env-var": "^7.3.0",
|
|
20
|
-
"google-protobuf": "
|
|
19
|
+
"@types/google-protobuf": "~3.7.0",
|
|
21
20
|
"grpc-web": "^1.2.1"
|
|
22
21
|
},
|
|
23
22
|
"devDependencies": {
|