Skip to content

Commit 5093ec6

Browse files
committed
clarify docs
1 parent b73d503 commit 5093ec6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

websocketproxy.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ type WebsocketProxy struct {
3232
// unmodified request.
3333
Backend func(*http.Request) *url.URL
3434

35-
// Upgrader specifies the parameters for upgrading an HTTP connection to a
36-
// WebSocket connection. If nil, DefaultUpgrader is used.
35+
// Upgrader specifies the parameters for upgrading a incoming HTTP
36+
// connection to a WebSocket connection. If nil, DefaultUpgrader is used.
3737
Upgrader *websocket.Upgrader
3838

39-
// Dialer contains options for connecting to WebSocket server. If nil,
40-
// DefaultDialer is used.
39+
// Dialer contains options for connecting to the backend WebSocket server.
40+
// If nil, DefaultDialer is used.
4141
Dialer *websocket.Dialer
4242
}
4343

0 commit comments

Comments
 (0)