Instantly share code, notes, and snippets.

Embed
What would you like to do?
Code shared from the Rust Playground
extern crate ws;
use ws::listen;
fn main() {
listen("127.0.0.1:3012", |out| {
move |msg| {
println!("{}",msg);
out.send(msg)
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment