few lines
This commit is contained in:
parent
ce4f6eaf92
commit
bb87c23709
1 changed files with 5 additions and 2 deletions
|
|
@ -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!()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue