Dial creates a new client connection by calling DialContext with a background context.
(urlStr string, requestHeader http.Header)
| 114 | |
| 115 | // Dial creates a new client connection by calling DialContext with a background context. |
| 116 | func (d *Dialer) Dial(urlStr string, requestHeader http.Header) (*Conn, *http.Response, error) { |
| 117 | return d.DialContext(context.Background(), urlStr, requestHeader) |
| 118 | } |
| 119 | |
| 120 | var errMalformedURL = errors.New("malformed ws or wss URL") |
| 121 |