Skip to content

docs: update webrtc example to latest API #403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

achingbrain
Copy link
Member

Updates the example to include libp2p API changes shipped last year

Updates the example to include libp2p API changes shipped last year
@achingbrain achingbrain requested a review from 2color July 3, 2025 05:52
@@ -155,12 +155,11 @@ Next, open the `src/index.js` file in your code editor and find the call to `cre
```js
const libp2p = await createLibp2p({
transports: [
// Allow all WebSocket connections inclusing without TLS
webSockets({ filter: filters.all }),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This functionality is handled globally by the connection gater now.

achingbrain added a commit to achingbrain/libp2p-webrtc-guide that referenced this pull request Jul 3, 2025
Updates example to use the libp2p api shipped last year.

Refs libp2p/docs#403
Copy link
Contributor

@2color 2color left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants