use crate::app::Message;
use crate::io::protocol::Protocol;
use anyhow::Result;
use std::sync::mpsc;

#[allow(dead_code)]
pub struct WsProtocol {
    url: String,
    message_tx: mpsc::Sender<Message>,
}

impl WsProtocol {
    #[allow(dead_code)]
    pub fn new(url: String, message_tx: mpsc::Sender<Message>) -> Result<Self> {
        Ok(Self { url, message_tx })
    }
}

impl Protocol for WsProtocol {
    fn run(&mut self) -> Result<()> {
        // This will be implemented with tokio runtime
        // For now, return error to fallback to stdio
        anyhow::bail!("WebSocket not yet implemented, use stdio");
    }
}
