diff --git a/src/lib.rs b/src/lib.rs index 513b15f..427a212 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -271,6 +271,12 @@ impl WebSocketStream { 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>) -> Result<(), WsError> where