dox
This commit is contained in:
parent
bb6e4c6acf
commit
a131b16538
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue