Expose the configuration of the websocket connection.

Allows wrapper types to respect max_message_size.
pull/33/head
Naja Melan 5 years ago committed by Sebastian Dröge
parent b86e6d5369
commit e131ec4e8a
  1. 6
      src/lib.rs

@ -271,6 +271,12 @@ impl<S> WebSocketStream<S> {
self.inner.get_mut().get_mut() self.inner.get_mut().get_mut()
} }
/// Returns a reference to the configuration of the tungstenite stream.
pub fn get_config(&self) -> &WebSocketConfig
{
self.inner.get_config()
}
/// Close the underlying web socket /// Close the underlying web socket
pub async fn close(&mut self, msg: Option<CloseFrame<'_>>) -> Result<(), WsError> pub async fn close(&mut self, msg: Option<CloseFrame<'_>>) -> Result<(), WsError>
where where

Loading…
Cancel
Save