8.0.5 • Published 11 days ago

@libp2p/daemon-client v8.0.5

Weekly downloads
-
License
Apache-2.0 OR MIT
Repository
github
Last release
11 days ago

libp2p.io Discuss codecov CI

libp2p-daemon client implementation

Install

$ npm i @libp2p/daemon-client

Specs

The specs for the daemon are currently housed in the go implementation. You can read them at libp2p/go-libp2p-daemon

Usage

Run a daemon process

There are currently two implementations of the libp2p-daemon:

Interact with the daemon process using the client

import { createClient } from '@libp2p/daemon-client'
import { multiaddr } from '@multiformats/multiaddr'

const serverAddr = multiaddr('/ip4/127.0.0.1/tcp/1234')
const client = createClient(serverAddr)

// interact with the daemon
let identify
try {
  identify = await client.identify()
} catch (err) {
  // ...
}

// close the socket
await client.close()

API Docs

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

8.0.5

11 days ago

8.0.4

3 months ago

8.0.3

3 months ago

8.0.2

3 months ago

8.0.1

5 months ago

7.0.0

9 months ago

7.0.3

6 months ago

7.0.2

6 months ago

7.0.1

9 months ago

8.0.0

5 months ago

5.0.3

1 year ago

5.0.2

1 year ago

5.0.1

1 year ago

5.0.0

1 year ago

6.0.1

1 year ago

6.0.0

1 year ago

6.0.3

1 year ago

6.0.2

1 year ago

4.1.0

1 year ago

4.0.3

1 year ago

4.0.2

1 year ago

4.0.1

1 year ago

4.0.0

1 year ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.4

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago