Function send

Source
pub async fn send<C: Serialize>(
    writer: &mut SplitSink<WebSocketStream<MaybeTlsStream<TcpStream>>, Message>,
    command: C,
) -> Result<()>