pub fn send(&self, raw: &str) -> Result<(), Error> {
        self.tx
            .send(WsMessage::Text(raw.to_string()))
            .map_err(|err| Error::Internal(format!("{}", err)))?;
        Ok(())
    }
/// Send a raw message
///
/// Must set `message.id` using result of `get_msg_id()`.
///
/// Success from this API does not guarantee the message is delivered
/// successfully since that runs on a separate task.
Send a raw message
Must set `message.id` using result of `get_msg_id()`.

Success from this API does not guarantee the message is delivered
successfully since that runs on a separate task.
Send a raw message Must set ` message . id ` using result of ` get_msg_id () ` . Success from this API does not guarantee the message is delivered successfully since that runs on a separate task .
pub fn send(&self, raw: &str) -> Result<(), Error> {
        self.tx
            .send(WsMessage::Text(raw.to_string()))
            .map_err(|err| Error::Internal(format!("{}", err)))?;
        Ok(())
    }
pub fn send ( & self , raw : & str ) -> Result < ( ) , Error > { self . tx . send ( WsMessage :: Text ( raw . to_string ( ) ) ) . map_err ( | err | Error :: Internal ( format ! ( " " err ) ) ) ? ; Ok ( ( ) ) }
Send a raw message
Must set `message.id` using result of `get_msg_id()`.
Send a raw message Must set ` message . id ` using result of ` get_msg_id () ` .
&self
raw
&str
&self
raw
&str