Skip to content

Commit

Permalink
Subscribe event
Browse files Browse the repository at this point in the history
  • Loading branch information
roznawsk committed Jul 7, 2023
1 parent 8943eeb commit b180492
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions jellyfish/server_notifications.proto
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,17 @@ message ServerMessage {
string id = 1;
}

message SubscribeRequest {
enum EventType {
EVENT_TYPE_UNSPECIFIED = 0;
EVENT_TYPE_SERVER_NOTIFICATION = 1;
}

repeated EventType event_types = 1;
}

message SubscriptionResponse {}

oneof content {
RoomCrashed room_crashed = 1;
PeerConnected peer_connected = 2;
Expand All @@ -104,5 +115,7 @@ message ServerMessage {
RoomState room_state = 9;
RoomsState rooms_state = 10;
RoomNotFound room_not_found = 11;
SubscribeRequest subscribe_request = 12;
SubscriptionResponse subscription_response = 13;
}
}

0 comments on commit b180492

Please sign in to comment.