add on_close to abstract and simplify ws_client socket closing

This commit is contained in:
James Wilson
2021-08-02 09:30:29 +01:00
parent 13afb96f93
commit 963ef576f3
5 changed files with 47 additions and 36 deletions
+2
View File
@@ -20,6 +20,8 @@ mod connect;
mod receiver;
/// The channel based send interface
mod sender;
/// A close helper that we use in sender/receiver.
mod on_close;
pub use connect::{connect, ConnectError, Connection, RawReceiver, RawSender};
pub use receiver::{Receiver, RecvError, RecvMessage};