2022-11-16 17:16:08 +00:00
|
|
|
/// <reference types="node" />
|
2022-11-16 07:47:03 +00:00
|
|
|
import DHTOnlineBase from "./dhtOnlineBase.js";
|
|
|
|
export default class DHTOnline extends DHTOnlineBase {
|
|
|
|
private flood;
|
|
|
|
private swarm;
|
2022-11-16 17:13:00 +00:00
|
|
|
constructor(swarm: any, { id, data, ...opts }?: {
|
2022-11-16 17:16:08 +00:00
|
|
|
id?: Buffer;
|
|
|
|
data?: {};
|
2022-11-16 17:28:12 +00:00
|
|
|
[key: string]: any;
|
2022-11-16 07:47:03 +00:00
|
|
|
});
|
|
|
|
handlePeerAdd(peer: any): void;
|
|
|
|
handlePeerRemove(peer: any): void;
|
|
|
|
broadcast(message: any, ttl?: number): void;
|
|
|
|
}
|
|
|
|
//# sourceMappingURL=index.d.ts.map
|