Skip to content

Commit fc93ffb

Browse files
committed
Add rust-websocket protocol to client example
This makes the client example compatible with the server one, so one can run `cargo run --example server` and `cargo run --example client`. Fixes #114
1 parent 9cacbd3 commit fc93ffb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/client.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ fn main() {
1515

1616
let client = ClientBuilder::new(CONNECTION)
1717
.unwrap()
18+
.add_protocol("rust-websocket")
1819
.connect_insecure()
1920
.unwrap();
2021

0 commit comments

Comments
 (0)