Skip to content
Snippets Groups Projects
Commit 8b780f44 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

Add RoomDeleted message for the publisher

parent 2c2f3bdf
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ pub enum ServerMessage { ...@@ -35,6 +35,7 @@ pub enum ServerMessage {
RoomCreated { RoomCreated {
id: uuid::Uuid, id: uuid::Uuid,
}, },
RoomDeleted,
Ice { Ice {
candidate: String, candidate: String,
#[serde(rename = "sdpMLineIndex")] #[serde(rename = "sdpMLineIndex")]
......
...@@ -343,6 +343,10 @@ impl Publisher { ...@@ -343,6 +343,10 @@ impl Publisher {
publisher: ctx.address(), publisher: ctx.address(),
}); });
} }
ctx.text(
serde_json::to_string(&ServerMessage::RoomDeleted)
.expect("Failed to serialize room deleted message"),
);
*room_state = RoomState::None; *room_state = RoomState::None;
} }
RoomState::Joining => { RoomState::Joining => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment