Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/RPC/CocoonService/Initialization/
InitialHandshake.rs

1//! Cocoon → Mountain ready ping. No payload; Mountain replies with the
2//! init-extension-host data via `InitExtensionHost::Fn`.
3
4use tonic::{Response, Status};
5
6use crate::{RPC::CocoonService::CocoonServiceImpl, Vine::Generated::Empty, dev_log};
7
8pub async fn Fn(_Service:&CocoonServiceImpl, _Request:Empty) -> Result<Response<Empty>, Status> {
9	dev_log!("cocoon", "[CocoonService] Initial handshake received from Cocoon");
10
11	Ok(Response::new(Empty {}))
12}