Skip to content

Commit

Permalink
src: websocket_manager: Add websocket close and return to client
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulTrombin authored and patrickelectric committed Feb 28, 2024
1 parent dd7d97f commit 5e89b4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/websocket_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ impl StreamHandler<Result<ws::Message, ws::ProtocolError>> for WebsocketActor {
ctx.text(text);
}
Ok(ws::Message::Binary(bin)) => ctx.binary(bin),
Ok(ws::Message::Close(msg)) => ctx.close(msg),
_ => (),
}
}
Expand Down

0 comments on commit 5e89b4a

Please sign in to comment.