pub async fn wait_for_events<C: ServerConnector>( agent: &mut Agent<C>, ) -> Vec<Event>
Wait for new events, or Error::Disconnected when stream is closed and will not reconnect.