Skip to main content

Module Messaging

Module Messaging 

Source
Expand description

ยงWebviewProvider - Messaging Operations

Implementation of webview message passing for MountainEnvironment

Handles secure bidirectional communication between host and webview.

Structsยง

WebviewMessage
Represents a Webview message
WebviewMessageContext ๐Ÿ”’
Webview message handler context

Functionsยง

post_message_to_webview_impl ๐Ÿ”’
Messaging operations implementation for MountainEnvironment
remove_webview_message_listener_impl ๐Ÿ”’
Removes a message listener for a specific Webview. Tauriโ€™s listen returns an unlisten closure; for simplicity we rely on the webview window being destroyed (which drops all its listeners) rather than storing the handle. Future work: store in a global map.
setup_webview_message_listener_impl ๐Ÿ”’
Sets up a message listener for a specific Webview.