summaryrefslogtreecommitdiff
path: root/WebInterface/wasm/webhogg/src
diff options
context:
space:
mode:
Diffstat (limited to 'WebInterface/wasm/webhogg/src')
-rw-r--r--WebInterface/wasm/webhogg/src/lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/WebInterface/wasm/webhogg/src/lib.rs b/WebInterface/wasm/webhogg/src/lib.rs
index 4a79a24..9d052cd 100644
--- a/WebInterface/wasm/webhogg/src/lib.rs
+++ b/WebInterface/wasm/webhogg/src/lib.rs
@@ -19,14 +19,16 @@ 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");
+ info!("js value: {:?}", worker);
+ worker.post_message(&wasm_bindgen::JsValue::from_str("msg frm wasm_gLe")).unwrap();
}
#[wasm_bindgen]
-pub fn graphics_entry(worker: Worker) {
+pub fn graphics_entry() {
client_logger::init_logger();
info!("graphics initialisation");