From e0900803251726f74732e5ee0862206bfa7d0464 Mon Sep 17 00:00:00 2001 From: Alexey Chelnakov Date: Thu, 11 Jul 2024 14:04:49 +0300 Subject: [PATCH] fix --- v1/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v1/client.go b/v1/client.go index 8a6f31d..c4a352e 100644 --- a/v1/client.go +++ b/v1/client.go @@ -936,8 +936,8 @@ func (c *MgClient) WsMeta(events []string, urlParams ...WsParams) (string, http. url = fmt.Sprintf("%s%s%s%s", strings.Replace(c.URL, "https", "wss", 1), prefix, "/ws?events=", strings.Join(events[:], ",")) var params wsParams - for _, opt := range urlParams { - opt.apply(¶ms) + for _, param := range urlParams { + param.apply(¶ms) } if len(params.options) > 0 { url = fmt.Sprintf("%s&options=%s", url, strings.Join(params.options, ","))