pub async fn spawn_writer_task(stream: TcpStream, rx: Receiver<Vec<u8>>)
Spawns a task to handle writing messages to a peer connection