func (u *Upgrader) Upgrade(w http.ResponseWriter, r *http.Request) (*Conn, error) {
	c, err := u.Upgrader.Upgrade(w, r, nil)
	if err != nil {
		return nil, err
	}
	return &Conn{c}, nil
}
// Upgrade creates a Conn from the http request.
Upgrade creates a Conn from the http request.
// Upgrade creates a Conn from the http request .
func (u *Upgrader) Upgrade(w http.ResponseWriter, r *http.Request) (*Conn, error) {
	c, err := u.Upgrader.Upgrade(w, r, nil)
	if err != nil {
		return nil, err
	}
	return &Conn{c}, nil
}
func ( u * Upgrader ) Upgrade ( w http . ResponseWriter , r * http . Request ) ( * Conn , error ) { c , err := u . Upgrader . Upgrade ( w , r , nil ) if err != nil { return nil , err } return & Conn { c } , nil }
Upgrade creates a Conn from the http request.
Upgrade creates a Conn from the http request .