few lines

This commit is contained in:
maxstrb 2025-10-31 08:54:18 +01:00
parent ce4f6eaf92
commit bb87c23709

View file

@ -3,7 +3,7 @@ use crate::{
response::Response,
};
use tokio::io::{self, AsyncWriteExt};
use tokio::io::{self, AsyncReadExt, AsyncWriteExt};
use tokio::net::TcpStream;
use base64::prelude::*;
@ -50,7 +50,10 @@ impl WebsocketConnection {
todo!()
}
pub async fn read_next_message(&self) {
pub async fn read_next_message(&mut self) -> io::Result<DataBlock> {
let mut first_line: [u8; 2] = [0; 2];
self.stream.read_exact(&mut first_line).await?;
todo!()
}