Skip to content

Instantly share code, notes, and snippets.

@gregsifr
Created November 11, 2017 10:22
Show Gist options
  • Save gregsifr/6bdcc23c540d63dd5ffdb441fb452d94 to your computer and use it in GitHub Desktop.
Save gregsifr/6bdcc23c540d63dd5ffdb441fb452d94 to your computer and use it in GitHub Desktop.
loop {
for message in client.incoming_messages() {
match message {
OwnedMessage::Text(data) => data,
_ => None,
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment