Custom websocket

This commit is contained in:
2025-09-14 11:08:02 +02:00
parent a1b54fda6b
commit e1585bedab
5 changed files with 157 additions and 38 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ impl Server {
fn handle_client(self: &Arc<Self>, stream: TcpStream) -> anyhow::Result<()> {
Self::LOGGER.info(format!("New connection: {}", stream.peer_addr()?));
// Initialize client
let client = Client::new_tcp(stream)?;
let client = Client::new(stream)?;
// Insert to the set of all connected clients
self.clients.lock().unwrap().insert(client.clone());