github.com/mdaxf/iac@v0.0.0-20240519030858-58a061660378/vendor_skip/nhooyr.io/websocket/accept_js.go (about) 1 package websocket 2 3 import ( 4 "errors" 5 "net/http" 6 ) 7 8 // AcceptOptions represents Accept's options. 9 type AcceptOptions struct { 10 Subprotocols []string 11 InsecureSkipVerify bool 12 OriginPatterns []string 13 CompressionMode CompressionMode 14 CompressionThreshold int 15 } 16 17 // Accept is stubbed out for Wasm. 18 func Accept(w http.ResponseWriter, r *http.Request, opts *AcceptOptions) (*Conn, error) { 19 return nil, errors.New("unimplemented") 20 }