npm.io
2.0.4 • Published 3 months ago

@libp2p/http-websocket

Licence
Apache-2.0 OR MIT
Version
2.0.4
Deps
10
Size
678 kB
Vulns
0
Weekly
0
Stars
13

@libp2p/http-client

@libp2p/http-websocket

libp2p.io Discuss codecov CI

libp2p-compatible implementation of the WebSocket API

About

This is an implementation of the WebSocket API that uses libp2p streams as the underlying transport layer, instead of a TCP socket.

Install

$ npm i @libp2p/http-websocket

Browser <script> tag

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

<script src="https://unpkg.com/@libp2p/http-websocket/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.