|
|
@ -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 |
|
|
|