Expose the configuration of the websocket connection.

Allows wrapper types to respect max_message_size.
pull/21/head
Naja Melan 5 years ago
parent f36c55b3f5
commit 0c90df89de
  1. 6
      src/lib.rs

@ -267,6 +267,12 @@ impl<S> WebSocketStream<S> {
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
pub async fn close(&mut self, msg: Option<CloseFrame<'_>>) -> Result<(), WsError>
where

Loading…
Cancel
Save