pub async fn write(&mut self, message: String) -> Result<()> {
        log::debug!("Sending message to WebSocket tail: {}", message);
        match self.websocket.send(Message::Text(message)).await {
            Err(err) => anyhow::bail!("Failed to write to WebSocket tail: {}", err),
            _ => Ok(()),
        }
    }
/// Writes a text message to the WebSocket.
Writes a text message to the WebSocket.
Writes a text message to the WebSocket .
pub async fn write(&mut self, message: String) -> Result<()> {
        log::debug!("Sending message to WebSocket tail: {}", message);
        match self.websocket.send(Message::Text(message)).await {
            Err(err) => anyhow::bail!("Failed to write to WebSocket tail: {}", err),
            _ => Ok(()),
        }
    }
pub async fn write ( & mut self , message : String ) -> Result < ( ) > { log :: debug ! ( " " message ) ; match self . websocket . send ( Message :: Text ( message ) ) . await { Err ( err ) => anyhow :: bail ! ( " " err ) , _ => Ok ( ( ) ) , } }
Writes a text message to the WebSocket.
Writes a text message to the WebSocket .
&mut self
message
String
&mut self
message
String