Skip to content

Commit

Permalink
Update README.md (nostr-dev-kit#261)
Browse files Browse the repository at this point in the history
Added 'import "websocket-polyfill";'

to demo, could not connect to relay without it
  • Loading branch information
JohnZolton authored Sep 11, 2024
1 parent d017af1 commit 86ede3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ NDK is a [nostr](<[url](https://github.com/nostr-protocol/nostr)>) development k
npm add @nostr-dev-kit/ndk
```


## Debugging

NDK uses the `debug` package to assist in understanding what's happening behind the hood. If you are building a package
Expand Down Expand Up @@ -92,6 +93,7 @@ You can pass an object with several options to a newly created instance of NDK.
```ts
// Import the package
import NDK from "@nostr-dev-kit/ndk";
import "websocket-polyfill";

// Create a new NDK instance with explicit relays
const ndk = new NDK({
Expand Down

0 comments on commit 86ede3c

Please sign in to comment.