Skip to content

Commit c289c7a

Browse files
dmitshurgopherbot
authored andcommitted
websocket: re-add documentation for DialConfig
The comment of the DialConfig function was dropped during CL 463097. There doesn't seem to be a good reason to do that, so bring it back. For golang/go#57953. Change-Id: I3e458b7d18cdab95763f003da5a644c8287b54ad Reviewed-on: https://go-review.googlesource.com/c/net/+/568198 Reviewed-by: Dmitri Shuralyov <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Damien Neil <[email protected]> Auto-Submit: Dmitri Shuralyov <[email protected]>
1 parent 9fb4a8c commit c289c7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

websocket/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ func parseAuthority(location *url.URL) string {
7979
return location.Host
8080
}
8181

82+
// DialConfig opens a new client connection to a WebSocket with a config.
8283
func DialConfig(config *Config) (ws *Conn, err error) {
8384
return config.DialContext(context.Background())
8485
}

0 commit comments

Comments
 (0)