well-goknown/vendor/github.com/nbd-wtf/go-nostr/connection_options_js.go

15 lines
301 B
Go

package nostr
import (
"crypto/tls"
"net/http"
ws "github.com/coder/websocket"
)
var emptyOptions = ws.DialOptions{}
func getConnectionOptions(_ http.Header, _ *tls.Config) *ws.DialOptions {
// on javascript we ignore everything because there is nothing else we can do
return &emptyOptions
}