Pass at media server implementation
Still need to figure out client-server for this but it seems reasonable right now. Need to figure out if everything should be boxed slices or Vecs as well
This commit is contained in:
+6
-1
@@ -225,6 +225,9 @@ pub enum ClientMessage {
|
|||||||
#[serde(with = "serde_bytes")]
|
#[serde(with = "serde_bytes")]
|
||||||
bytes: Vec<u8>
|
bytes: Vec<u8>
|
||||||
},
|
},
|
||||||
|
MediaFetch {
|
||||||
|
id: Uuid,
|
||||||
|
},
|
||||||
// Join and subscribe
|
// Join and subscribe
|
||||||
RoomJoin {
|
RoomJoin {
|
||||||
room_id: RoomId,
|
room_id: RoomId,
|
||||||
@@ -344,7 +347,9 @@ pub enum ServerMessage {
|
|||||||
// Returned on fetch or naturally from subscribe
|
// Returned on fetch or naturally from subscribe
|
||||||
// This should be
|
// This should be
|
||||||
Messages(Vec<TaggedMessage>),
|
Messages(Vec<TaggedMessage>),
|
||||||
MediaUploaded(Uuid),
|
MediaId(Uuid),
|
||||||
|
#[serde(with = "serde_bytes")]
|
||||||
|
Media(Box<[u8]>),
|
||||||
Error(ServerError),
|
Error(ServerError),
|
||||||
// Returned on read
|
// Returned on read
|
||||||
State(StatePath,StateValue),
|
State(StatePath,StateValue),
|
||||||
|
|||||||
Reference in New Issue
Block a user