mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-07-08 23:31:41 +02:00
use coder/websocket for everything, get rid of gobwas.
supposedly it is faster, and anyway it's better to use it since we're already using it for wasm/js. (previously named nhooyr/websocket).
This commit is contained in:
@ -149,8 +149,8 @@ func TestConnectWithOrigin(t *testing.T) {
|
||||
defer ws.Close()
|
||||
|
||||
// relay client
|
||||
r := NewRelay(context.Background(), NormalizeURL(ws.URL))
|
||||
r.RequestHeader = http.Header{"origin": {"https://example.com"}}
|
||||
r := NewRelay(context.Background(), NormalizeURL(ws.URL),
|
||||
WithRequestHeader(http.Header{"origin": {"https://example.com"}}))
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
|
||||
defer cancel()
|
||||
err := r.Connect(ctx)
|
||||
|
Reference in New Issue
Block a user