aboutsummaryrefslogtreecommitdiffstats
path: root/teleterm-web
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-22 04:09:03 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-22 04:09:03 -0500
commit8fc67d1822c5f83cb47d9fde8973f1a125d2bdb4 (patch)
tree80e692c0137f2521586341614bbf2d44c241bdf7 /teleterm-web
parent9c2ba5b022beb1f1e7adcd7a3d8c50fe192384ad (diff)
downloadteleterm-8fc67d1822c5f83cb47d9fde8973f1a125d2bdb4.tar.gz
teleterm-8fc67d1822c5f83cb47d9fde8973f1a125d2bdb4.zip
connect to the teleterm server on watch requests
Diffstat (limited to 'teleterm-web')
-rw-r--r--teleterm-web/src/model.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/teleterm-web/src/model.rs b/teleterm-web/src/model.rs
index 9f7ab05..0e6f82d 100644
--- a/teleterm-web/src/model.rs
+++ b/teleterm-web/src/model.rs
@@ -33,7 +33,11 @@ impl Model {
id: &str,
orders: &mut impl Orders<crate::Msg>,
) {
- let ws = crate::ws::connect(WATCH_URL, crate::Msg::Watch, orders);
+ let ws = crate::ws::connect(
+ &format!("{}?id={}", WATCH_URL, id),
+ crate::Msg::Watch,
+ orders,
+ );
self.watch_conn = Some(WatchConn {
id: id.to_string(),
ws,