forked from ionorg/ion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsfu.proto
49 lines (41 loc) · 871 Bytes
/
sfu.proto
1
2
3
4
5
6
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
syntax = "proto3";
option go_package = "github.com/pion/ion/proto/sfu";
package sfu;
service SFU {
rpc Signal(stream SignalRequest) returns (stream SignalReply) {}
}
message SignalRequest {
string id = 1;
oneof payload {
JoinRequest join = 2;
bytes description = 3;
Trickle trickle = 4;
}
}
message SignalReply {
string id = 1;
oneof payload {
JoinReply join = 2;
bytes description = 3;
Trickle trickle = 4;
string iceConnectionState = 5;
string error = 6;
}
}
message JoinRequest {
string sid = 1;
string uid = 2;
bytes description = 3;
map<string, string> config = 4;
}
message JoinReply {
bytes description = 1;
}
message Trickle {
enum Target {
PUBLISHER = 0;
SUBSCRIBER = 1;
}
Target target = 1;
string init = 2;
}