27 lines
641 B
Rust
27 lines
641 B
Rust
/*
|
|
use std::{
|
|
cmp::{min, max}, sync::{
|
|
Arc, Mutex,
|
|
}, time::{Duration, Instant}
|
|
};
|
|
|
|
use async_channel::Sender;
|
|
use futures_util::{SinkExt, StreamExt};
|
|
use log::{error, info};
|
|
use tokio::net::TcpStream;
|
|
use tokio_tungstenite::{
|
|
tungstenite::Result, WebSocketStream,
|
|
};
|
|
|
|
use crate::coordinator::ApplicationEvent;
|
|
use super::TrackerState;
|
|
*/
|
|
|
|
use tokio_tungstenite::tungstenite::Result;
|
|
|
|
pub async fn handle_connection(// mut ws_stream: WebSocketStream<TcpStream>,
|
|
// mec: Sender<ApplicationEvent>,
|
|
// tracker_state: Arc<Mutex<TrackerState>>
|
|
) -> Result<()> {
|
|
todo!("Remote connections not implemented yet");
|
|
}
|