2.1.24 • Published 6 months ago

@libp2p/echo v2.1.24

Weekly downloads
-
License
Apache-2.0 OR MIT
Repository
github
Last release
6 months ago

@libp2p/echo

libp2p.io Discuss codecov CI

Implementation of an Echo protocol

About

An implementation of a simple Echo protocol.

Any data received by the receiver will be sent back to the sender.

Example

import { noise } from '@chainsafe/libp2p-noise'
import { yamux } from '@chainsafe/libp2p-yamux'
import { echo } from '@libp2p/echo'
import { peerIdFromString } from '@libp2p/peer-id'
import { createLibp2p } from 'libp2p'

const receiver = await createLibp2p({
  addresses: {
    listen: ['/ip4/0.0.0.0/tcp/0']
  },
  connectionEncrypters: [noise()],
  streamMuxers: [yamux()],
  services: {
    echo: echo()
  }
})

const sender = await createLibp2p({
  addresses: {
    listen: ['/ip4/0.0.0.0/tcp/0']
  },
  connectionEncrypters: [noise()],
  streamMuxers: [yamux()],
  services: {
    echo: echo()
  }
})

const stream = await sender.dialProtocol(receiver.getMultiaddrs(), sender.services.echo.protocol)

// write/read stream

Install

$ npm i @libp2p/echo

Browser <script> tag

Loading this module through a script tag will make its exports available as Libp2pEcho in the global namespace.

<script src="https://unpkg.com/@libp2p/echo/dist/index.min.js"></script>

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.

2.1.1-665769021

1 year ago

2.1.10-ff951f1a0

9 months ago

2.1.15-3f127b610

9 months ago

2.1.3-06f79b646

12 months ago

2.1.14-3d9b07c34

9 months ago

2.1.14-22e62d00f

9 months ago

2.1.7-bf0f74d66

10 months ago

2.1.5-f4747450f

12 months ago

2.1.3-3650283f7

1 year ago

2.1.3-98b43045c

1 year ago

2.1.12-9b1a3791d

9 months ago

2.1.7-26313e695

10 months ago

2.1.5-ae75570c8

11 months ago

2.1.12-2a3cec922

9 months ago

2.1.20-cdc63e6cc

7 months ago

2.1.8-21088c519

10 months ago

2.1.21-aa25d38ab

6 months ago

2.1.1-c917314f3

1 year ago

2.1.9-f9345a7a1

10 months ago

2.1.7-66c3ec5e1

10 months ago

2.1.7-c1d0b7fa4

10 months ago

2.1.23-9f1be6742

6 months ago

2.1.9-d8f003e6e

10 months ago

2.1.1-02f285fc8

1 year ago

2.1.23-3528df829

6 months ago

2.1.3-48e9cfa56

12 months ago

2.1.13-5b084e968

9 months ago

2.1.17-2f2322a25

9 months ago

2.1.22-7788b4025

6 months ago

2.1.14-52a46ecad

9 months ago

2.1.5-3c63482e5

12 months ago

2.1.18-fc5122110

8 months ago

2.1.15-2fbcdb687

9 months ago

2.1.3-d866eb5bb

1 year ago

2.1.14-e2f49432b

9 months ago

2.1.18-da7353a0b

8 months ago

2.1.1-2feaeddb4

1 year ago

2.1.9-b818882e0

9 months ago

2.1.22-776cb432d

6 months ago

2.1.2

1 year ago

2.1.15-dd71d8a86

9 months ago

2.1.4

12 months ago

2.1.3

1 year ago

2.1.6

11 months ago

2.1.5

12 months ago

2.1.8

10 months ago

2.1.7

10 months ago

2.1.8-6e52ee346

10 months ago

2.1.19-b9e32cc37

8 months ago

2.1.3-8a9258a24

1 year ago

2.1.6-f767126e1

10 months ago

2.1.14-0555339ba

9 months ago

2.1.5-20d9ba73e

11 months ago

2.1.17-a7ab9a41b

9 months ago

2.1.9-23685db5e

10 months ago

2.1.6-723bde6ce

10 months ago

2.1.3-96654117c

12 months ago

2.1.10-8331c8ea8

9 months ago

2.1.14-e1f868f03

9 months ago

2.1.5-5acfae333

12 months ago

2.1.1-7dead6d35

1 year ago

2.1.16

9 months ago

2.1.11-d98cc46e4

9 months ago

2.1.17

9 months ago

2.1.14

9 months ago

2.1.3-6ddc1b80e

1 year ago

2.1.15

9 months ago

2.1.12

9 months ago

2.1.13

9 months ago

2.1.10

9 months ago

2.1.11

9 months ago

2.1.20-185b23eac

7 months ago

2.1.18

9 months ago

2.1.8-96f14e429

10 months ago

2.1.19

8 months ago

2.1.6-b56d91884

11 months ago

2.1.23

6 months ago

2.1.24

6 months ago

2.1.21

6 months ago

2.1.22

6 months ago

2.1.20

8 months ago

2.1.9-1fc0e2662

10 months ago

2.1.3-bc90b4fd5

1 year ago

2.1.23-cc7b34c0f

6 months ago

2.1.18-0b9090aea

8 months ago

2.1.5-abe9bd154

11 months ago

2.1.3-a82b07d8c

1 year ago

2.1.18-4c64bd06d

8 months ago

2.1.16-5fe2a18fc

9 months ago

2.1.16-88b5c29ed

9 months ago

2.1.23-307d0ba58

6 months ago

2.1.3-4a85eb033

1 year ago

2.1.7-d61cbacec

10 months ago

2.1.3-f2f9008b8

12 months ago

2.1.19-3833353bd

8 months ago

2.1.6-fe8af37a1

11 months ago

2.1.5-d3e5a3382

12 months ago

2.1.1-6bd7f9169

1 year ago

2.1.11-2b49a5f74

9 months ago

2.1.6-15a70af5f

10 months ago

2.1.3-f53f65d18

1 year ago

2.1.14-96f79bc11

9 months ago

2.1.13-90cca822b

9 months ago

2.1.3-b248eefc0

1 year ago

2.1.22-ab014c0c0

6 months ago

2.1.9-c4e862731

10 months ago

2.1.1-844a8d2d1

1 year ago

2.1.10-700e4c0b5

9 months ago

2.1.3-92cc74082

12 months ago

2.1.10-cc7fcfe98

9 months ago

2.1.17-a71c7c32b

9 months ago

2.1.23-6a3ae02f5

6 months ago

2.1.9-7655833bb

10 months ago

2.1.3-a0c8ceb99

12 months ago

2.1.6-06fc82da8

11 months ago

2.1.3-6ab85ea68

12 months ago

2.1.20-a5a33afd9

7 months ago

2.1.4-5c4a79e5a

12 months ago

2.1.20-3577af88a

6 months ago

2.1.2-656db81cf

1 year ago

2.1.6-4bbcfa707

10 months ago

2.1.13-6f8cfeafb

9 months ago

2.1.8-7a1665cd8

10 months ago

2.1.18-71267286

8 months ago

2.1.11-1ab50cc0d

9 months ago

2.1.14-9acccaaed

9 months ago

2.1.1-d30d07e6f

1 year ago

2.1.6-c90984ec7

11 months ago

2.1.18-4f37aff53

8 months ago

2.1.8-34b3c14b8

10 months ago

2.1.23-5b004c0c4

6 months ago

2.1.7-80ddad5bb

10 months ago

2.1.8-d72b51184

10 months ago

2.1.5-52f0f2f13

12 months ago

2.1.23-8e87be9e6

6 months ago

2.1.20-9b33d202e

7 months ago

2.1.10-754fe84db

9 months ago

2.1.3-4761dd701

1 year ago

2.1.3-0862522fe

1 year ago

2.1.23-b32bc8406

6 months ago

2.1.15-80fe31aa1

9 months ago

2.1.23-8efb065d2

6 months ago

2.1.4-127abe24b

12 months ago

2.1.17-95909c3df

9 months ago

2.1.9-d188511b9

10 months ago

2.1.13-e7e01f58f

9 months ago

2.1.20-f1de46607

7 months ago

2.1.1-7dcabb884

1 year ago

2.1.1-7c085d10c

1 year ago

2.1.9-68ad3663e

9 months ago

2.1.9-2e35b6055

10 months ago

2.1.13-f465c5473

9 months ago

2.1.3-2c182d2e2

12 months ago

2.1.20-3df5bf2da

6 months ago

2.1.1-91687998d

1 year ago

2.1.20-afa5c9f59

8 months ago

2.1.16-a6c9aee5a

9 months ago

2.1.2-05d559f54

1 year ago

2.1.3-9614de7c6

12 months ago

2.1.14-4939ef7ae

9 months ago

2.1.6-e2ec7bdaa

10 months ago

2.1.20-32627c876

7 months ago

2.1.3-f8da60e73

12 months ago

2.1.18-78cd7d53e

8 months ago

2.1.23-2a7425cdb

6 months ago

2.1.9-e7e280257

9 months ago

2.1.20-4b8c0a6bd

7 months ago

2.1.3-d6cd25d0d

1 year ago

2.1.20-213a54a1e

7 months ago

2.1.9

10 months ago

2.1.23-d91ae66c6

6 months ago

2.1.23-ec73d59a6

6 months ago

2.1.12-a4f0db1e9

9 months ago

2.1.23-b8600fce8

6 months ago

2.1.3-d19974d93

12 months ago

2.1.3-339b7df88

1 year ago

2.1.5-023ea575c

12 months ago

2.1.16-0699fb747

9 months ago

2.1.23-14dbebea8

6 months ago

2.1.20-772b4011e

7 months ago

2.1.1-eee97c7d4

1 year ago

2.1.20-6f96de86c

8 months ago

2.1.9-35a52f029

10 months ago

2.1.5-285dab7d7

12 months ago

2.1.1-432955390

1 year ago

2.1.23-dbbc6ef1d

6 months ago

2.1.17-757577dd2

9 months ago

2.1.3-99f5f270b

12 months ago

2.1.9-4ab04faf0

10 months ago

2.1.15-48cd9b652

9 months ago

2.1.17-907518bad

9 months ago

2.1.3-b02ea9b6e

1 year ago

2.1.3-406b3916c

12 months ago

2.1.16-600d0a561

9 months ago

2.1.11-7718d020a

9 months ago

2.1.18-b2124c2db

8 months ago

2.1.18-d53ef170c

8 months ago

2.1.1-32ca76fcb

1 year ago

2.1.18-da4e9da82

8 months ago

2.1.23-bb4ad31db

6 months ago

2.1.1-adc767899

1 year ago

2.1.18-53a9be54e

8 months ago

2.1.15-2c8ecb455

9 months ago

2.1.1-7626b224d

1 year ago

2.1.3-2625cc323

12 months ago

2.1.19-f09bef843

8 months ago

2.1.1-0a3406a05

1 year ago

2.1.1-c2ff2e454

1 year ago

2.1.1

1 year ago

2.1.0-7383821e1

1 year ago

2.1.1-a5cd8cfbe

1 year ago

2.1.0-d34642db1

1 year ago

2.1.1-ad5cfd66a

1 year ago

2.1.0-a657bbd2e

1 year ago

2.1.0-717731e49

1 year ago

2.0.8-3bc9769b8

1 year ago

2.0.8-3244ed086

1 year ago

2.1.0

1 year ago

2.0.8-aa8de9fd3

1 year ago

2.0.8-4521cf1f7

1 year ago

2.0.8-e6b4158c6

1 year ago

2.0.8-75301ac7d

1 year ago

2.0.5-a390db4a4

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.8

1 year ago

2.0.6-58784abf7

1 year ago

2.0.6-27b2fa6b6

1 year ago

2.0.6-24fa1d5af

1 year ago

2.0.7-934a891f9

1 year ago

2.0.5-82bd42bcf

1 year ago

2.0.6-661d6586a

1 year ago

2.0.6-b4f02a637

1 year ago

2.0.5-dad979f9b

1 year ago

2.0.6-d9c7e0f7e

1 year ago

2.0.6-35b48025c

1 year ago

2.0.6-80e798cdc

1 year ago

2.0.7-0d326d102

1 year ago

2.0.6-32c176fd5

1 year ago

2.0.7-e99e8f448

1 year ago

2.0.7-d4da56961

1 year ago

2.0.8-5d199f9b6

1 year ago

2.0.7-d7a818e8e

1 year ago

2.0.5

1 year ago

2.0.4-c5988cce8

1 year ago

2.0.4-980038477

1 year ago

2.0.4-0c5957836

1 year ago

2.0.4-fa83ee1c7

1 year ago

2.0.3

1 year ago

2.0.4

1 year ago

2.0.3-c258b35af

1 year ago

2.0.2-7f7ec82ae

1 year ago

2.0.2-b3272cfce

1 year ago

2.0.1-21fe841f2

1 year ago

2.0.2

1 year ago

2.0.1-c628c44c5

1 year ago

2.0.1-6ccbb06f0

1 year ago

2.0.1-4fd7eb2e1

1 year ago

2.0.1-34455b5f2

1 year ago

2.0.1

1 year ago

2.0.0-18dd3cb26

1 year ago

2.0.0-1210884ed

1 year ago

2.0.0

1 year ago

1.1.5-a142bb642

1 year ago

1.1.5-2bbaf4361

1 year ago

1.1.5-c010d575c

1 year ago

1.1.5-81ebe4e47

1 year ago

1.1.5-71e5f7a5b

1 year ago

2.0.0-7cd984569

1 year ago

1.1.5-5214dec4a

1 year ago

1.1.5-e1ca9cced

1 year ago

2.0.0-d101aac4b

1 year ago

1.1.5-b6681bd25

1 year ago

1.1.5-dd7b329c4

1 year ago

1.1.5-df330695a

1 year ago

1.1.5-737b3ea5b

1 year ago

1.1.5-2265e59ba

1 year ago

1.1.5-1675adee2

1 year ago

1.1.5-e211b46cc

1 year ago

1.1.5-50b897139

1 year ago

1.1.5-7655e5200

1 year ago

1.0.8-94cac115a

1 year ago

1.0.7-e69a2f1b6

2 years ago

1.0.7-7464dc00c

2 years ago

1.0.7-62e32252a

1 year ago

1.0.8-d1f1c2be7

1 year ago

1.1.0-b0b6cae12

1 year ago

1.1.1-e9b6a242a

1 year ago

1.1.4-1dfb74e79

1 year ago

1.0.7-440c9b360

1 year ago

1.0.7-757fb2674

1 year ago

1.1.1-ce6da9896

1 year ago

1.1.2-a130993ed

1 year ago

1.0.7-167bf2b3c

2 years ago

1.1.1

1 year ago

1.1.0

1 year ago

1.1.1-e1f0b307c

1 year ago

1.1.0-3b9cbf7d8

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.8-9e0236627

1 year ago

1.1.5-359265a3a

1 year ago

1.0.7-bc6556f96

1 year ago

1.1.4-0edbfe7af

1 year ago

1.1.2-34cf1f7cd

1 year ago

1.1.3-f30e2ee8d

1 year ago

1.1.0-0b55625d1

1 year ago

1.1.0-abb9f90c7

1 year ago

1.0.8-44791342

1 year ago

1.1.0-15eb66428

1 year ago

1.0.7-90d10b565

1 year ago

1.1.2-8b3114292

1 year ago

1.0.8

1 year ago

1.1.2-40902d99b

1 year ago

1.0.7-6011d3697

1 year ago

1.1.2-928801a80

1 year ago

1.1.2-a82ff8221

1 year ago

1.0.7-f4e572cd6

2 years ago

1.1.1-151bc46fb

1 year ago

1.0.7-7aec7bd45

2 years ago

1.1.0-af85a7cad

1 year ago

1.0.7-12106b5b0

1 year ago

1.0.7-f6fe2cc3c

1 year ago

1.1.5-3c8dd5bbf

1 year ago

1.1.4-c5dba70a9

1 year ago

1.1.4-7939dbd5c

1 year ago

1.1.0-21cf7bc56

1 year ago

1.0.7-4bd8e4f79

1 year ago

1.1.1-3319ff41e

1 year ago

1.0.7-169c9d85e

2 years ago

1.0.8-8e4fdcde9

1 year ago

1.1.2-73f2b6b6d

1 year ago

1.1.2-4a994c5ef

1 year ago

1.1.2-a8ec2bcb7

1 year ago

1.0.8-863b3de03

1 year ago

1.0.7-769461d3b

1 year ago

1.1.0-6573cb8b0

1 year ago

1.0.7-352699ab5

2 years ago

1.1.1-d1aec4d9f

1 year ago

1.1.3-944935f8d

1 year ago

1.0.7

2 years ago

1.0.6-1a41c28bb

2 years ago

1.0.6-8214dcfb0

2 years ago

1.0.6-1cd5aae11

2 years ago

1.0.6-48444f750

2 years ago

1.0.6-a3e8beabd

2 years ago

1.0.6-1eb5b2713

2 years ago

1.0.6-5b7380259

2 years ago

1.0.6-7de56f244

2 years ago

1.0.6-1cc6a9405

2 years ago

1.0.6

2 years ago

1.0.6-3c73707ff

2 years ago

1.0.5-9d4b0596f

2 years ago

1.0.5-43046b9ae

2 years ago

1.0.5-83c14d08f

2 years ago

1.0.5-7ae6063df

2 years ago

1.0.5-d9366f9aa

2 years ago

1.0.5-bfa7660d5

2 years ago

1.0.5-510d9ce65

2 years ago

1.0.5-4ad63bb79

2 years ago

1.0.5-767b23e71

2 years ago

1.0.5-1488a7371

2 years ago

1.0.5-a11e135c2

2 years ago

1.0.4-de3f7aeaf

2 years ago

1.0.5-9d13a2f6a

2 years ago

1.0.5

2 years ago

1.0.4-3bc94b403

2 years ago

1.0.4-c82432312

2 years ago

1.0.4-3d7a9da17

2 years ago

1.0.4-e1923b0a7

2 years ago

1.0.4-998fcaf94

2 years ago

1.0.4-90cfd25e2

2 years ago

1.0.3-2281f802b

2 years ago

1.0.4

2 years ago

1.0.3-c2181f0cf

2 years ago

1.0.3-fd1f8343d

2 years ago

1.0.3-eaf8ac7cf

2 years ago

1.0.3-acef72613

2 years ago

1.0.3-ea4f26285

2 years ago

1.0.3-08dabd390

2 years ago

1.0.3-31c78f4ed

2 years ago

1.0.2-b17824a1d

2 years ago

1.0.3

2 years ago

1.0.2-2c56203f9

2 years ago

1.0.2-732c436d4

2 years ago

1.0.2-936dbba10

2 years ago

1.0.2-2b2958fe6

2 years ago

1.0.2

2 years ago

1.0.1-3e515f007

2 years ago

1.0.1-d446c6c31

2 years ago

1.0.1-a2b41f793

2 years ago

1.0.1-1f589c822

2 years ago

1.0.1-ab5f05763

2 years ago

1.0.1-afe15f669

2 years ago

1.0.1-4fc0a7d30

2 years ago

1.0.1-80278b36b

2 years ago

1.0.1-3ffecc5bf

2 years ago

1.0.1

2 years ago

1.0.0-82901e785

2 years ago

1.0.0-1fc929c1c

2 years ago

1.0.0-330a5ed72

2 years ago

1.0.0-59a97b61b

2 years ago

1.0.0-bf720c045

2 years ago

1.0.0

2 years ago

0.0.0-fad3074b8

2 years ago

0.0.0-cad9cf007

2 years ago

0.0.0-e1798aa26

2 years ago

0.0.0

2 years ago