Merge branch 'channel-structure' of https://github.com/mitch161/rust-chat-server into channel-structure

This commit is contained in:
michael-bailey 2020-07-17 19:51:57 +01:00
commit b62d32dcd5
1 changed files with 11 additions and 1 deletions

View File

@ -78,12 +78,22 @@ impl<'a> Client<'a> {
Commands::Info(Some(params)) => {
self.get_stream().write_all(a.to_string().as_bytes());
/* why not do this?
*
* self.transmit_data(a.to_string().as_str());
*/
},
Commands::Disconnect(None) => {
},
Commands::ClientRemove(Some(params)) => {},
Commands::Client(Some(params)) => {},
Commands::Client(Some(params)) => {
self.transmit_data(a.to_string().as_str());
todo!()
/*
* a success message needs to be read and confirmed
*/
},
Commands::Success(data) => {},
_ => {},
}