pub async fn poll(
    client_sender: &mut Sender<RequestMessage>
) -> Result<CommandResponse<Option<PollResponse>>, Error>
Expand description

Polls a single message from the server.

Return Some() if a message was available from the server, None otherwise

Arguments

  • client_sender - Reference to the tokio channel into the client