From da224e363aee06efb863654dd8a10cd98701f5d5 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Sat, 3 Jun 2017 00:13:46 +0300 Subject: [PATCH] Update config.go Former-commit-id: f61883e68b5138317c8451242545fa2006e5698b --- adaptors/websocket/config.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/adaptors/websocket/config.go b/adaptors/websocket/config.go index 62e843dc..e0e794d1 100644 --- a/adaptors/websocket/config.go +++ b/adaptors/websocket/config.go @@ -77,9 +77,10 @@ type Config struct { // The request is an argument which you can use to generate the ID (from headers for example). // If empty then the ID is generated by DefaultIDGenerator: randomString(64) IDGenerator func(ctx *iris.Context) string - /** - List od subprotocols accepted by server - */ + // Subprotocols specifies the server's supported protocols in order of + // preference. If this field is set, then the Upgrade method negotiates a + // subprotocol by selecting the first match in this list with a protocol + // requested by the client. Subprotocols []string }