Skip to main content

Module wasm

Module wasm 

Source
Expand description

Re-export types to make sure wasm_bindgen picks them up

ModulesΒ§

communication_backend πŸ”’
discover πŸ”’
generic_session_repository πŸ”’
Generic session repository abstraction allowing IPC clients to choose between SDK-managed (in-memory) and client-managed (JavaScript-backed) session storage.
ipc_client πŸ”’
js_session_repository πŸ”’
message πŸ”’

StructsΒ§

ChannelError
DeserializeError
JsCommunicationBackend
JavaScript implementation of the CommunicationBackend trait for IPC communication.
JsCommunicationBackendSender
JavaScript interface for handling outgoing messages from the IPC framework.
JsIpcClient
JavaScript wrapper around the IPC client. For more information, see the IpcClient trait documentation.
JsIpcClientSubscription
JavaScript wrapper around the IPC client subscription. For more information, see the IpcClientSubscription documentation.
JsSessionRepository
Thread safe JavaScript implementation of the SessionRepository trait for IPC sessions.
RawJsSessionRepository
JavaScript interface for handling outgoing messages from the IPC framework.

EnumsΒ§

WasmCommunicationError
Error type for the WASM communication backend’s send and receive operations.

FunctionsΒ§

ipc_register_discover_handler
Registers a DiscoverHandler so that the client can respond to DiscoverRequests.
ipc_request_discover
Sends a DiscoverRequest to the specified destination and returns the response.