summaryrefslogtreecommitdiff
path: root/WebInterface/wasm/webhogg/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'WebInterface/wasm/webhogg/src/lib.rs')
-rw-r--r--WebInterface/wasm/webhogg/src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebInterface/wasm/webhogg/src/lib.rs b/WebInterface/wasm/webhogg/src/lib.rs
index 5823e72..9d052cd 100644
--- a/WebInterface/wasm/webhogg/src/lib.rs
+++ b/WebInterface/wasm/webhogg/src/lib.rs
@@ -19,11 +19,12 @@ fn run_application() {
}
#[wasm_bindgen]
-pub fn game_logic_entry(worker: Worker) {
+pub fn game_logic_entry(worker: web_sys::Worker) {
client_logger::init_logger();
info!("game logic initialisation");
- //worker.post_message(&wasm_bindgen::JsValue::from_str("msg frm wasm_gLe")).unwrap();
+ info!("js value: {:?}", worker);
+ worker.post_message(&wasm_bindgen::JsValue::from_str("msg frm wasm_gLe")).unwrap();
}
#[wasm_bindgen]