This binding package provides a Coaty communication binding for transmitting Coaty communication events via the libp2p network stack using its pubsub interfaces. This binding builds upon peer-to-peer based communication without the need for a central broker or router component.
This package comes with complete API documentation.
This package is considered the reference implementation for all language-specific Coaty libp2p bindings. It includes the specification of the Coaty libp2p communication protocol which must be implemented by all libp2p bindings in order to be interoperable.
You can install the latest version of this binding package in your Coaty application as follows:
npm install @coaty/binding.libp2p
This npm package targets Coaty projects using ECMAScript version es6
and
module format commonjs
. It runs in Node.js 12 or higher. Support for browsers
is work in progress.
Ensure to always install a binding version that is compatible with the
@coaty/core
framework version you are using in your application, i.e. both
packages must have the same major version.
Next, declare the libp2p binding in your Coaty agent container configuration as follows:
import { Libp2pBinding } from "@coaty/binding.libp2p";
const configuration: Configuration = {
...
communication: {
binding: Libp2pBinding.withOptions({
...
}),
...
},
...
};
Available binding options are described in the API documentation.
If you like this binding, please consider ★ starring the project on github. Contributions are welcome and appreciated.
The recommended practice described in the contribution guidelines of the Coaty JS framework also applies here.
To release a new version of this package, follow these steps:
npm run cut-release
- prepare a new release, including automatic
versioning, documentation generation, conventional changelog, and tagging.npm run push-release
- push the prepared release to the remote git reponpm run publish-release
- publish the package on npm registry.Code and documentation copyright 2020 Siemens AG.
Code is licensed under the MIT License.
Documentation is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Generated using TypeDoc