diff --git a/src/lib.rs b/src/lib.rs index 6e9e344..fc66c1f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -267,6 +267,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