MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / send_forward_did_close

Function send_forward_did_close

packages/server/src/webkit.rs:948–969  ·  view source on GitHub ↗
(
    writer: &mut W,
    connection_id: &str,
    app_id: &str,
    page_id: u64,
    sender_id: &str,
)

Source from the content-addressed store, hash-verified

946}
947
948async fn send_forward_did_close<W: AsyncWrite + Unpin>(
949 writer: &mut W,
950 connection_id: &str,
951 app_id: &str,
952 page_id: u64,
953 sender_id: &str,
954) -> Result<(), AppError> {
955 let mut args = rpc_args(connection_id);
956 args.insert(
957 "WIRApplicationIdentifierKey".to_owned(),
958 Value::String(app_id.to_owned()),
959 );
960 args.insert(
961 "WIRPageIdentifierKey".to_owned(),
962 Value::Integer(page_id.into()),
963 );
964 args.insert(
965 "WIRSenderKey".to_owned(),
966 Value::String(sender_id.to_owned()),
967 );
968 send_rpc(writer, "_rpc_forwardDidClose:", args).await
969}
970
971async fn send_rpc<W: AsyncWrite + Unpin>(
972 writer: &mut W,

Callers 2

attach_websocket_innerFunction · 0.85

Calls 3

rpc_argsFunction · 0.85
send_rpcFunction · 0.85
insertMethod · 0.80

Tested by

no test coverage detected