diff options
author | Dmitry Sharshakov | 2021-08-13 17:13:27 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-08-20 04:43:54 +0000 |
commit | fabee039835e18ec464164f60182689f7489cfe7 (patch) | |
tree | e2674941bffe886884f05f3a0f163bb4334ddc91 /helix-dap/examples | |
parent | 26a55dcefd9774235cd8c40eb2724daa0808e376 (diff) |
dap: support TCP clients
Diffstat (limited to 'helix-dap/examples')
-rw-r--r-- | helix-dap/examples/dap-basic.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-dap/examples/dap-basic.rs b/helix-dap/examples/dap-basic.rs index 81decd1a..68e8ab54 100644 --- a/helix-dap/examples/dap-basic.rs +++ b/helix-dap/examples/dap-basic.rs @@ -13,7 +13,9 @@ pub async fn main() -> Result<()> { .apply() .expect("Failed to set up logging"); - let mut client = Client::start("nc", vec!["127.0.0.1", "7777"], 0)?; + let client = Client::tcp("127.0.0.1:7777".parse::<std::net::SocketAddr>().unwrap(), 0).await; + println!("create: {:?}", client); + let mut client = client?; println!("init: {:?}", client.initialize().await); println!("caps: {:#?}", client.capabilities()); |