use std::rc::Rc;
use html::{Input, Textarea};
use leptos::*;
use leptos_use::{core::ConnectionReadyState, use_websocket, UseWebsocketReturn};
use lib::models::*;
use serde_json::to_string;
#[derive(Clone)]
pub struct WebSocketContext {
pub ready_state: Signal,
pub message: Signal