diff --git a/packages/transport-websockets/README.md b/packages/transport-websockets/README.md index 0bee4634cd..4035e3b7dc 100644 --- a/packages/transport-websockets/README.md +++ b/packages/transport-websockets/README.md @@ -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: [ diff --git a/packages/transport-websockets/src/index.ts b/packages/transport-websockets/src/index.ts index c7f286ef69..c5d8a2b7b7 100644 --- a/packages/transport-websockets/src/index.ts +++ b/packages/transport-websockets/src/index.ts @@ -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: [