Function moras::modules::riscv::middleware::frontend_api::authorize_share_client
source ยท pub fn authorize_share_client(
window: Window,
cur_tab_name: State<'_, CurTabName>,
tab_map: State<'_, TabMap>,
rpc_state: State<'_, RpcState>,
ip: String,
port: u16,
password: String,
) -> Optional
Expand description
Authorize and connect to a remote RPC server as client.
cur_tab_name
: State containing the current tab name.tab_map
: State containing the map of all tabs.rpc_state
: State containing the RPC server/client.ip
: IPV4 address of the remote server.port
: Port number of the remote server.password
: Password to be used for the connection.
Will emit event front_share_client
Returns Optional
indicating the success or failure of the connection.