1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-20 12:45:41 +02:00

Add WsWriter trait

`WsWriter` trait is a common interface for writing to a websocket and
it's implemented for both: `WebScoketContext` and `ClientWriter`.
This commit is contained in:
Denis Kolodin
2018-05-02 08:25:31 +03:00
parent a1958deaae
commit 80f385e703
4 changed files with 75 additions and 53 deletions

View File

@@ -175,6 +175,7 @@ pub use httprequest::HttpRequest;
pub use httpresponse::HttpResponse;
pub use json::Json;
pub use scope::Scope;
pub use ws::WsWriter;
#[cfg(feature = "openssl")]
pub(crate) const HAS_OPENSSL: bool = true;