Skip to main content

Mountain/Vine/Server/Notification/
OutputDispose.rs

1#![allow(non_snake_case)]
2//! Cocoon → Mountain `output.dispose` notification.
3//! Forwarding atom for `OutputChannel.dispose()` - removes the channel
4//! from Sky's `OutputChannels` map.
5
6use serde_json::Value;
7use tauri::Emitter;
8
9use crate::{Vine::Server::MountainVinegRPCService::MountainVinegRPCService, dev_log};
10
11pub async fn OutputDispose(Service:&MountainVinegRPCService, Parameter:&Value) {
12	let _ = Service.ApplicationHandle().emit("sky://output/dispose", Parameter);
13	dev_log!(
14		"grpc",
15		"[Output] dispose channel={}",
16		Parameter.get("channel").and_then(Value::as_str).unwrap_or("?")
17	);
18}