14 lines
452 B
TypeScript
14 lines
452 B
TypeScript
import DHTOnlineBase from "./dhtOnlineBase.js";
|
|
export default class DHTOnline extends DHTOnlineBase {
|
|
private flood;
|
|
private swarm;
|
|
constructor(swarm: any, { id, data, protocol, ...opts }?: {
|
|
protocol: undefined;
|
|
id?: any;
|
|
data?: {} | undefined;
|
|
});
|
|
handlePeerAdd(peer: any): void;
|
|
handlePeerRemove(peer: any): void;
|
|
broadcast(message: any, ttl?: number): void;
|
|
}
|
|
//# sourceMappingURL=index.d.ts.map
|