Files
xo-stack/packages/stack/src/p2p/base-p2p.ts
T
2025-03-10 05:36:16 +00:00

12 lines
294 B
TypeScript

// A P2P Adapter does not HAVE to be LibP2P.
// We could create an adapter to use a centralized server.
export abstract class P2P {
// from(bootstrapNodes)
abstract createChannel(): Promise<void>;
abstract findPeer(peerId: string): Promise<void>;
}
export abstract class P2PChannel {}