From bd3361c26ec2995f1a358a1f632e3b52eee3d80d Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 21 Nov 2019 11:42:42 -0500 Subject: rename some stuff --- teleterm/src/web.rs | 4 ++-- teleterm/static/teleterm_web.js | 10 +++++----- teleterm/static/teleterm_web_bg.wasm | Bin 38686 -> 38686 bytes 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'teleterm') diff --git a/teleterm/src/web.rs b/teleterm/src/web.rs index 8513629..bcf055f 100644 --- a/teleterm/src/web.rs +++ b/teleterm/src/web.rs @@ -69,7 +69,7 @@ pub fn router() -> impl gotham::handler::NewHandler { route .get("/teleterm_web_bg.wasm") .to(serve_static("application/wasm", &TELETERM_WEB_WASM)); - route.get("/ws").to(handle_websocket_connection); + route.get("/watch").to(handle_watch); }) } @@ -86,7 +86,7 @@ fn serve_static( } } -fn handle_websocket_connection( +fn handle_watch( mut state: gotham::state::State, ) -> (gotham::state::State, hyper::Response) { let body = hyper::Body::take_from(&mut state); diff --git a/teleterm/static/teleterm_web.js b/teleterm/static/teleterm_web.js index eccf740..d6503a1 100644 --- a/teleterm/static/teleterm_web.js +++ b/teleterm/static/teleterm_web.js @@ -243,7 +243,7 @@ function init(module) { imports.wbg.__wbindgen_rethrow = function(arg0) { throw takeObject(arg0); }; - imports.wbg.__wbindgen_closure_wrapper19 = function(arg0, arg1, arg2) { + imports.wbg.__wbindgen_closure_wrapper17 = function(arg0, arg1, arg2) { const state = { a: arg0, b: arg1, cnt: 1 }; const real = (arg0) => { state.cnt++; @@ -261,14 +261,14 @@ function init(module) { const ret = real; return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper17 = function(arg0, arg1, arg2) { + imports.wbg.__wbindgen_closure_wrapper21 = function(arg0, arg1, arg2) { const state = { a: arg0, b: arg1, cnt: 1 }; const real = (arg0) => { state.cnt++; const a = state.a; state.a = 0; try { - return __wbg_elem_binding0(a, state.b, arg0); + return __wbg_elem_binding1(a, state.b, arg0); } finally { if (--state.cnt === 0) wasm.__wbg_function_table.get(3)(a, state.b); else state.a = a; @@ -279,14 +279,14 @@ function init(module) { const ret = real; return addHeapObject(ret); }; - imports.wbg.__wbindgen_closure_wrapper21 = function(arg0, arg1, arg2) { + imports.wbg.__wbindgen_closure_wrapper19 = function(arg0, arg1, arg2) { const state = { a: arg0, b: arg1, cnt: 1 }; const real = (arg0) => { state.cnt++; const a = state.a; state.a = 0; try { - return __wbg_elem_binding1(a, state.b, arg0); + return __wbg_elem_binding0(a, state.b, arg0); } finally { if (--state.cnt === 0) wasm.__wbg_function_table.get(3)(a, state.b); else state.a = a; diff --git a/teleterm/static/teleterm_web_bg.wasm b/teleterm/static/teleterm_web_bg.wasm index 38eeef1..83dce95 100644 Binary files a/teleterm/static/teleterm_web_bg.wasm and b/teleterm/static/teleterm_web_bg.wasm differ -- cgit v1.2.3-54-g00ecf