Cezar Sa Espinola 819f4c5391 websocket: use net.Dialer to open tcp connection
This change adds a Dialer field to websocket.Config struct. If this
value is set the Dialer will be used. If it's nil, DialConfig will
create an empty Dialer that will maintain the original behavior.

Because before Go 1.3 there was no crypto/tls.DialWithDialer function,
the Dialer will be ignored when opening TLS connections in these
versions.

Fixes golang/go#9198.

Change-Id: If8b5c3c47019a3d367c436e3e60eb54bf0276184
Reviewed-on: https://go-review.googlesource.com/12191
Reviewed-by: Russ Cox <rsc@golang.org>
2016-10-03 02:44:59 +00:00
2014-12-09 14:17:11 +11:00
2016-01-08 17:00:32 +00:00
2014-12-09 14:17:11 +11:00
2016-09-24 02:07:15 +00:00
2016-09-24 02:06:57 +00:00
2016-09-29 00:31:53 +00:00
2015-12-14 00:45:27 +00:00
2014-12-09 14:17:11 +11:00
2016-09-24 02:07:28 +00:00
2016-10-01 16:38:42 +00:00
2014-12-08 10:44:07 +11:00
2015-03-18 17:04:12 +00:00
2015-02-18 23:42:41 +00:00

This repository holds supplementary Go networking libraries.

To submit changes to this repository, see http://golang.org/doc/contribute.html.
Description
[mirror] Go supplementary network libraries
Readme BSD-3-Clause 13 MiB
Languages
Go 99.9%