()
| 121 | } |
| 122 | |
| 123 | func (opts *DialOptions) client() *http.Client { |
| 124 | if opts.ClientFunc != nil { |
| 125 | return opts.ClientFunc(opts) |
| 126 | } |
| 127 | return &http.Client{ |
| 128 | Timeout: opts.Timeout, |
| 129 | Jar: config.CookieJar, |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | // DialWebsocket establishes a SockJS session over a websocket connection. |
| 134 | // |