mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-10-06 20:16:53 +02:00
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).
16 lines
321 B
Go
16 lines
321 B
Go
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
|
|
}
|