mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-25 18:09:22 +02:00
no need for StreamHandler
This commit is contained in:
@ -21,10 +21,9 @@ impl Actor for Ws {
|
||||
}
|
||||
|
||||
/// Define Handler for ws::Message message
|
||||
# impl StreamHandler<ws::Message> for Ws {}
|
||||
impl Handler<ws::Message> for Ws {
|
||||
type Result=();
|
||||
|
||||
|
||||
fn handle(&mut self, msg: ws::Message, ctx: &mut HttpContext<Self>) {
|
||||
match msg {
|
||||
ws::Message::Ping(msg) => ws::WsWriter::pong(ctx, &msg),
|
||||
|
Reference in New Issue
Block a user