feat: Add getRelayPeerId method for IFluenceClient (#260)

This commit is contained in:
Pavel
2023-02-16 15:33:03 +03:00
committed by GitHub
parent 0e795cb0fc
commit a10278afaa
3 changed files with 14 additions and 2 deletions

View File

@@ -142,6 +142,10 @@ export class FluencePeer implements IFluenceClient {
return this.getStatus().peerId!;
}
getRelayPeerId(): string {
return this.getStatus().relayPeerId!;
}
getPeerSecretKey(): Uint8Array {
if (!this._keyPair) {
throw new Error("Can't get key pair: peer is not initialized");