From 3f5bb7c023ede4bcd5ad213b7c2df1df016249cc Mon Sep 17 00:00:00 2001 From: Andrew Gillis Date: Sat, 24 Mar 2018 18:18:34 -0400 Subject: [PATCH] comment --- transport/websocketpeer.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/transport/websocketpeer.go b/transport/websocketpeer.go index 5452a732..5215fbfb 100644 --- a/transport/websocketpeer.go +++ b/transport/websocketpeer.go @@ -22,7 +22,9 @@ type WebsocketConfig struct { EnableContextTakeover bool `json:"enable_context_takeover"` CompressionLevel int `json:"compression_level"` - // For WebsocketServer configuration only + // For WebsocketServer configuration only. These options are configured + // for the router by passing WebsocketConfig to + // WebsocketServer.SetConfig(). // // EnableTrackingCookie tells the server to send a random-value cookie to // the websocket client. A returning client may identify itself by sending @@ -49,14 +51,12 @@ type WebsocketConfig struct { // } // // The "cookie" and "nextcookie" values are retrieved similarly. - EnableTrackingCookie bool `json:"enable_tracking_cookie"` + // // EnableRequestCapture tells the server to include the upgrade HTTP // request in the HELLO and session details. It is stored in // Details.transport.auth.request|*http.Request and is available to // auth/authz logic. - // - // EnableTrackingCookie and EnableRequestCapture is configured for the - // server by passing WebsocketConfig to WebsocketServer.SetConfig(). + EnableTrackingCookie bool `json:"enable_tracking_cookie"` EnableRequestCapture bool `json:"enable_request_capture"` // For websocket client configuration only