diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-22 15:16:14 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-22 15:20:00 -0500 |
commit | cc0ac6c8337e3dfea740feb0385d4a14e737d77c (patch) | |
tree | 760a62e92f97705dfe922ae026cb6f6d0cf82e95 /teleterm/src/web.rs | |
parent | b6bfebb57804bc72fe1f85bcc050b548cb79a11d (diff) | |
download | teleterm-cc0ac6c8337e3dfea740feb0385d4a14e737d77c.tar.gz teleterm-cc0ac6c8337e3dfea740feb0385d4a14e737d77c.zip |
resize the browser terminal if the streamer terminal is resized
Diffstat (limited to 'teleterm/src/web.rs')
-rw-r--r-- | teleterm/src/web.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/teleterm/src/web.rs b/teleterm/src/web.rs index 6cc9568..89291c5 100644 --- a/teleterm/src/web.rs +++ b/teleterm/src/web.rs @@ -377,12 +377,9 @@ impl<S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Send + 'static> msg: &crate::protocol::Message, ) -> Result<Option<tungstenite::Message>> { match msg { - crate::protocol::Message::TerminalOutput { .. } => { - let json = serde_json::to_string(msg) - .context(crate::error::SerializeMessage)?; - Ok(Some(tungstenite::Message::Text(json))) - } - crate::protocol::Message::Disconnected => { + crate::protocol::Message::TerminalOutput { .. } + | crate::protocol::Message::Disconnected + | crate::protocol::Message::Resize { .. } => { let json = serde_json::to_string(msg) .context(crate::error::SerializeMessage)?; Ok(Some(tungstenite::Message::Text(json))) |