mirror of
https://github.com/actix/examples
synced 2025-06-28 18:00:37 +02:00
update dependencies
This commit is contained in:
@ -49,7 +49,7 @@ impl WsChatServer {
|
||||
let mut room = self.take_room(room_name)?;
|
||||
|
||||
for (id, client) in room.drain() {
|
||||
if client.do_send(ChatMessage(msg.to_owned())).is_ok() {
|
||||
if client.try_send(ChatMessage(msg.to_owned())).is_ok() {
|
||||
self.add_client_to_room(room_name, Some(id), client);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user