connection_options_js.go raw

   1  package nostr
   2  
   3  import (
   4  	"crypto/tls"
   5  	"net/http"
   6  
   7  	ws "github.com/coder/websocket"
   8  )
   9  
  10  var emptyOptions = ws.DialOptions{}
  11  
  12  func getConnectionOptions(_ http.Header, _ *tls.Config) *ws.DialOptions {
  13  	// on javascript we ignore everything because there is nothing else we can do
  14  	return &emptyOptions
  15  }
  16