Skip to content

Commit

Permalink
export waitForRemotePeer and mark as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
weboko committed Oct 4, 2024
1 parent 64b8f3a commit d1e2ba1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/sdk/src/waku/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from "./waku.js";
export { waitForRemotePeer } from "./wait_for_remote_peer.js";
2 changes: 2 additions & 0 deletions packages/sdk/src/waku/wait_for_remote_peer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { Logger } from "@waku/utils";
const log = new Logger("wait-for-remote-peer");

/**
* @deprecated Since @waku/sdk 0.29.0. Will be removed from 0.31.0
*
* Wait for a remote peer to be ready given the passed protocols.
* Must be used after attempting to connect to nodes, using
* {@link @waku/sdk!WakuNode.dial} or a bootstrap method with
Expand Down

0 comments on commit d1e2ba1

Please sign in to comment.