@libp2p/interface
Version:
The interface implemented by a libp2p node
21 lines • 574 B
JavaScript
/**
* Any object that implements this Symbol as a property should return a
* PeerRouting instance as the property value, similar to how `Symbol.Iterable`
* can be used to return an `Iterable` from an `Iterator`.
*
* @example
*
* ```TypeScript
* import { peerRouting, PeerRouting } from '@libp2p/peer-routing'
*
* class MyPeerRouter implements PeerRouting {
* get [peerRouting] () {
* return this
* }
*
* // ...other methods
* }
* ```
*/
export const peerRoutingSymbol = Symbol.for('@libp2p/peer-routing');
//# sourceMappingURL=peer-routing.js.map