Skip to content

Commit

Permalink
docs: fix filters import (#2579)
Browse files Browse the repository at this point in the history
  • Loading branch information
2color committed Jun 6, 2024
1 parent 769461d commit 62e3225
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/transport-websockets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The available filters are:
```TypeScript
import { createLibp2p } from 'libp2p'
import { webSockets } from '@libp2p/websockets'
import filters from '@libp2p/websockets/filters'
import * as filters from '@libp2p/websockets/filters'

const node = await createLibp2p({
transports: [
Expand Down
2 changes: 1 addition & 1 deletion packages/transport-websockets/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* ```TypeScript
* import { createLibp2p } from 'libp2p'
* import { webSockets } from '@libp2p/websockets'
* import filters from '@libp2p/websockets/filters'
* import * as filters from '@libp2p/websockets/filters'
*
* const node = await createLibp2p({
* transports: [
Expand Down

0 comments on commit 62e3225

Please sign in to comment.