mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-07-30 22:41:56 +00:00
feat: Add getRelayPeerId
method for IFluenceClient
(#260)
This commit is contained in:
@@ -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");
|
||||
|
Reference in New Issue
Block a user