summaryrefslogtreecommitdiffstats
path: root/relay.go
diff options
context:
space:
mode:
Diffstat (limited to 'relay.go')
-rw-r--r--relay.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/relay.go b/relay.go
index bda76af..b34a61d 100644
--- a/relay.go
+++ b/relay.go
@@ -6,7 +6,7 @@ import (
6 "fmt" 6 "fmt"
7 "sync" 7 "sync"
8 8
9 "github.com/coder/websocket" 9 "northwest.io/nostr/internal/websocket"
10) 10)
11 11
12// Relay represents a connection to a Nostr relay. 12// Relay represents a connection to a Nostr relay.
@@ -24,7 +24,7 @@ type Relay struct {
24 24
25// Connect establishes a WebSocket connection to the relay. 25// Connect establishes a WebSocket connection to the relay.
26func Connect(ctx context.Context, url string) (*Relay, error) { 26func Connect(ctx context.Context, url string) (*Relay, error) {
27 conn, _, err := websocket.Dial(ctx, url, nil) 27 conn, err := websocket.Dial(ctx, url)
28 if err != nil { 28 if err != nil {
29 return nil, fmt.Errorf("failed to connect to relay: %w", err) 29 return nil, fmt.Errorf("failed to connect to relay: %w", err)
30 } 30 }