Function silkenweb::window::on_message
source · pub fn on_message(f: impl FnMut(MessageEvent) + 'static) -> EventCallback
Expand description
Add a message
event handler at the window level.
This only has an effect on WASM targets.