Skip to content

Commit

Permalink
feat: add socketio history and new typed objects
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Dec 8, 2019
1 parent c808cb3 commit 3259cd7
Show file tree
Hide file tree
Showing 5 changed files with 862 additions and 201 deletions.
17 changes: 15 additions & 2 deletions api/calcapi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,20 @@ message SIO {
message Broadcast {
message Input {
string room = 1;
string msg = 2;
Msg msg = 2;
}
message Output {}
message Event {
string room = 1;
string msg = 2;
Msg msg = 2;
Peer peer = 3;
bool is_live = 4;
}
}

message Rooms {
message Output {
repeated string rooms = 1;
}
}

Expand All @@ -254,6 +261,11 @@ message SIO {
}
}

message Msg {
string text = 1;
int64 number = 2;
}

message Error {
bool is_error = 1;
string err_msg = 2;
Expand All @@ -262,6 +274,7 @@ message SIO {
message Peer {
string name = 1;
string color = 2;
int32 favorite_number = 3;
}

message Context {
Expand Down
2 changes: 1 addition & 1 deletion gen.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
431b63cd908588e398bbb94d1e642e585441099c ./api/dashboard.proto
47116fdc07405fe179dde05f858ac45e88647cfd ./api/calcapi.proto
5c613daf5318661d709f8766163ef986d885b72d Makefile
8578d7af4827f4aaa309e084a3bfe80a7146748b ./api/calcapi.proto
a0415fc5002d339337b03fe97801376ff3be3bbd ./api/crew.proto
ffa8325482af5c58dd816e9404f0226db0a1d7de ./api/soundcloud.proto
Loading

0 comments on commit 3259cd7

Please sign in to comment.