MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / send_forward_socket_setup

Function send_forward_socket_setup

packages/server/src/webkit.rs:899–921  ·  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

897}
898
899async fn send_forward_socket_setup<W: AsyncWrite + Unpin>(
900 writer: &mut W,
901 connection_id: &str,
902 app_id: &str,
903 page_id: u64,
904 sender_id: &str,
905) -> Result<(), AppError> {
906 let mut args = rpc_args(connection_id);
907 args.insert(
908 "WIRApplicationIdentifierKey".to_owned(),
909 Value::String(app_id.to_owned()),
910 );
911 args.insert("WIRAutomaticallyPause".to_owned(), Value::Boolean(false));
912 args.insert(
913 "WIRPageIdentifierKey".to_owned(),
914 Value::Integer(page_id.into()),
915 );
916 args.insert(
917 "WIRSenderKey".to_owned(),
918 Value::String(sender_id.to_owned()),
919 );
920 send_rpc(writer, "_rpc_forwardSocketSetup:", args).await
921}
922
923async fn send_forward_socket_data<W: AsyncWrite + Unpin>(
924 writer: &mut W,

Callers 1

attach_websocket_innerFunction · 0.85

Calls 3

rpc_argsFunction · 0.85
send_rpcFunction · 0.85
insertMethod · 0.80

Tested by

no test coverage detected