# js-libp2p-connection **Repository Path**: mirrors_libp2p/js-libp2p-connection ## Basic Information - **Project Name**: js-libp2p-connection - **Description**: JS Libp2p connections - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-06-16 - **Last Updated**: 2026-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ⛔️ DEPRECATED: @libp2p/connection is now included in [js-libp2p](https://github.com/libp2p/js-libp2p) ===== # @libp2p/connection [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/) [![IRC](https://img.shields.io/badge/freenode-%23libp2p-yellow.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23libp2p) [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io) [![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p-connection.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p-connection) [![CI](https://img.shields.io/github/workflow/status/libp2p/js-libp2p-interfaces/test%20&%20maybe%20release/master?style=flat-square)](https://github.com/libp2p/js-libp2p-connection/actions/workflows/js-test-and-release.yml) > JS Libp2p connections ## Table of contents - [Install](#install) - [Usage](#usage) - [License](#license) - [Contribute](#contribute) ## Install ```console $ npm i @libp2p/connection ``` ## Usage ```console npm i @libp2p/libp2p-connection ``` ```javascript import { Connection } from '@libp2p/connection' const connection = new Connection({ ... }) const stream = connection.newStream([ '/my-protocol/v1.0.0' ]) ``` ## License Licensed under either of - Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / ) - MIT ([LICENSE-MIT](LICENSE-MIT) / ) ## Contribute 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.