mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-07-13 04:52:19 +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:
15
connection_options_js.go
Normal file
15
connection_options_js.go
Normal file
@ -0,0 +1,15 @@
|
||||
package nostr
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
"net/http"
|
||||
|
||||
ws "github.com/coder/websocket"
|
||||
)
|
||||
|
||||
var emptyOptions = ws.DialOptions{}
|
||||
|
||||
func getConnectionOptions(requestHeader http.Header, tlsConfig *tls.Config) *ws.DialOptions {
|
||||
// on javascript we ignore everything because there is nothing else we can do
|
||||
return &emptyOptions
|
||||
}
|
Reference in New Issue
Block a user