15 lines
301 B
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
|
|
}
|