use super::{message::Message, error::ClientError};
pub trait Client{
async fn send_by_token(&self, token: impl Into<String>, message: Message) -> Result<(), ClientError>;
async fn send_by_topic(&self, topic: impl Into<String>, message: Message) -> Result<(), ClientError>;
}