Module static_lib

Module static_lib 

Source

Constants§

MUXIO_STATIC_RPC_CLIENT_REF

Functions§

get_static_client
Returns the current static RpcWasmClient, if initialized.
init_static_client
Initializes the global static RPC client if it has not been initialized.
static_muxio_handle_connect
Call this from your JavaScript glue code when the WebSocket onopen event fires.
static_muxio_handle_disconnect
Call this from your JavaScript glue code when the WebSocket’s onclose or onerror event fires.
static_muxio_read_bytes_uint8
Entry point from JavaScript when binary data arrives from the network.
with_static_client_async
Asynchronously executes a closure with the static RpcWasmClient, returning the result as a JavaScript Promise.