From ff0dfd5f3df0c1d710f530ff1ccf85fce43b6a4b Mon Sep 17 00:00:00 2001 From: Markus Kohlhase Date: Thu, 15 Jun 2023 01:44:23 +0200 Subject: [PATCH] Add runtime.connectNative --- src/runtime.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/runtime.rs b/src/runtime.rs index 4e73fb4..1b0df12 100644 --- a/src/runtime.rs +++ b/src/runtime.rs @@ -24,6 +24,9 @@ extern "C" { #[wasm_bindgen(method)] pub fn connect(this: &Runtime, extension_id: Option<&str>, connect_info: &Object) -> Port; + #[wasm_bindgen(method, js_name = connectNative)] + pub fn connect_native(this: &Runtime, application: &str) -> Port; + #[wasm_bindgen(method, getter, js_name = onMessage)] pub fn on_message(this: &Runtime) -> EventTarget;