This commit is contained in:
Adam 2024-05-04 02:53:03 -04:00
parent bb6e4c6acf
commit a131b16538

View file

@ -24,6 +24,7 @@ pub async fn websocket(stream: WebSocket, state: Arc<AppState>, who: SocketAddr)
// By splitting, we can send and receive at the same time.
let (mut sender, mut receiver) = stream.split();
// sup
let _greeting = sender.send(Message::Text(greeting(&state))).await;
// subscribe to broadcast channel