mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
fix comments (#568)
This commit is contained in:
@ -22,7 +22,7 @@ impl MyWebSocket {
|
||||
Self { hb: Instant::now() }
|
||||
}
|
||||
|
||||
/// helper method that sends ping to client every second.
|
||||
/// helper method that sends ping to client every 5 seconds (HEARTBEAT_INTERVAL).
|
||||
///
|
||||
/// also this method checks heartbeats from client
|
||||
fn hb(&self, ctx: &mut <Self as Actor>::Context) {
|
||||
|
Reference in New Issue
Block a user