Skip to content

Commit 8603f69

Browse files
ijsnowflosse
authored andcommitted
add runtime.sendNativeMessage
1 parent 2f28e3e commit 8603f69

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/runtime.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ extern "C" {
1414
options: Option<&Object>,
1515
) -> Result<JsValue, JsValue>;
1616

17+
#[wasm_bindgen(catch, method, js_name = sendNativeMessage)]
18+
pub async fn send_native_message(
19+
this: &Runtime,
20+
application: &str,
21+
message: &Object,
22+
) -> Result<JsValue, JsValue>;
23+
1724
#[wasm_bindgen(method)]
1825
pub fn connect(this: &Runtime, extension_id: Option<&str>, connect_info: &Object) -> Port;
1926

0 commit comments

Comments
 (0)