Const
Any object that implements this Symbol as a property should return a ContentRouting instance as the property value, similar to how Symbol.Iterable can be used to return an Iterable from an Iterator.
Symbol.Iterable
Iterable
Iterator
import { contentRoutingSymbol, ContentRouting } from '@libp2p/content-routing'class MyContentRouter implements ContentRouting { get [contentRoutingSymbol] () { return this } // ...other methods} Copy
import { contentRoutingSymbol, ContentRouting } from '@libp2p/content-routing'class MyContentRouter implements ContentRouting { get [contentRoutingSymbol] () { return this } // ...other methods}
Any object that implements this Symbol as a property should return a ContentRouting instance as the property value, similar to how
Symbol.Iterable
can be used to return anIterable
from anIterator
.