Skip to content
This repository was archived by the owner on May 22, 2024. It is now read-only.

Commit b5e99fc

Browse files
authored
Readme fix: import ssl and json (#10)
* fix: import ssl * fix: import json
1 parent a5153bc commit b5e99fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ print(f"Public key: {public_key.bech32()}")
1313
```
1414
**Connect to relays**
1515
```python
16+
import json
17+
import ssl
1618
import time
1719
from nostr.relay_manager import RelayManager
1820

@@ -30,6 +32,8 @@ relay_manager.close_connections()
3032
```
3133
**Publish to relays**
3234
```python
35+
import json
36+
import ssl
3337
import time
3438
from nostr.event import Event
3539
from nostr.relay_manager import RelayManager
@@ -55,6 +59,8 @@ relay_manager.close_connections()
5559
```
5660
**Receive events from relays**
5761
```python
62+
import json
63+
import ssl
5864
import time
5965
from nostr.filter import Filter, Filters
6066
from nostr.event import Event, EventKind

0 commit comments

Comments
 (0)