pub async fn static_muxio_handle_connect() -> Result<(), JsValue>
Call this from your JavaScript glue code when the WebSocket onopen event fires.
onopen