12 lines
294 B
TypeScript
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 {}
|