1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00

fix comments (#568)

This commit is contained in:
Ifa 2022-08-05 18:11:18 +02:00 committed by GitHub
parent 7a036d97b9
commit dc7623694c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -195,7 +195,7 @@ impl StreamHandler<Result<ws::Message, ws::ProtocolError>> for WsChatSession {
}
impl WsChatSession {
/// 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 ws::WebsocketContext<Self>) {

View File

@ -31,7 +31,7 @@ pub struct WsChatSession {
}
impl WsChatSession {
/// 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 ws::WebsocketContext<Self>) {

View File

@ -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) {