1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-09-02 01:31:57 +02:00

add simple websocket example

This commit is contained in:
Nikolay Kim
2017-10-20 21:08:38 -07:00
parent 9fd84a0aef
commit 71dc9edf8e
7 changed files with 181 additions and 36 deletions

View File

@@ -148,11 +148,11 @@ pub struct HttpChannel<T: 'static, A: 'static> {
keepalive_timer: Option<Timeout>,
}
impl<T: 'static, A: 'static> Drop for HttpChannel<T, A> {
/*impl<T: 'static, A: 'static> Drop for HttpChannel<T, A> {
fn drop(&mut self) {
println!("Drop http channel");
}
}
}*/
impl<T, A> Actor for HttpChannel<T, A>
where T: AsyncRead + AsyncWrite + 'static, A: 'static