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 }