> A test suite and interface you can use to implement a connection. A connection is understood as something that offers a dial+listen interface
The primary goal of this module is to enable developers to pick and swap their Record Store module as they see fit for their libp2p installation, without having to go through shims or compatibility issues. This module and test suite were heavily inspired by abstract-blob-store and abstract-stream-muxer.
Publishing a test suite as a module lets multiple modules all ensure compatibility since they use the same test suite.
The API is presented with both Node.js and Go primitives, however, there is not actual limitations for it to be extended for any other language, pushing forward the cross compatibility and interop through diferent stacks.
note: for any new given implementation that adds one more option to the multiaddr space that was not expected yet, the respective multiaddr should be added to the PeerInfo objects available on the tests, so that implementation can be properly tested.
Include this badge in your readme if you make a module that is compatible with the abstract-connection API. You can validate this by running the tests.
This method dials a connection to the Peer referenced by the peerInfo object.
peerInfo must be of the type `PeerInfo`.
stream must be a stream that implements the [abstract-stream](https://github.com/diasdavid/abstract-stream) interface.
[<options>] are not mandatory fields for all the implementations that might be passed for certain implementations for them to work (e.g. a Signalling Server for a WebRTC transport/connection implementation)
### Listening for incoming connections from other Peers
-`Node.js` conn.listen(options, function (stream) {})
This method waits and listens for incoming connections by other peers.