Skip to content

Commit ab39e09

Browse files
committed
Update comment for the setting
1 parent bdd080a commit ab39e09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/server.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ type StartSettings struct {
4444
TLSConfig *tls.Config
4545

4646
// HTTPMiddlewareFunc specifies middleware for HTTP messages received by the server.
47-
// This function is optional to set.
47+
// Note that the function will be called once for websockets upon connecting and will
48+
// be called for every HTTP request. This function is optional to set.
4849
HTTPMiddlewareFunc func(handlerFunc http.HandlerFunc) http.HandlerFunc
4950
}
5051

0 commit comments

Comments
 (0)