mirror of
https://github.com/retailcrm/mg-bot-api-client-go.git
synced 2024-11-27 07:16:08 +03:00
fix
This commit is contained in:
parent
3e9078ee86
commit
e090080325
@ -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[:], ","))
|
url = fmt.Sprintf("%s%s%s%s", strings.Replace(c.URL, "https", "wss", 1), prefix, "/ws?events=", strings.Join(events[:], ","))
|
||||||
|
|
||||||
var params wsParams
|
var params wsParams
|
||||||
for _, opt := range urlParams {
|
for _, param := range urlParams {
|
||||||
opt.apply(¶ms)
|
param.apply(¶ms)
|
||||||
}
|
}
|
||||||
if len(params.options) > 0 {
|
if len(params.options) > 0 {
|
||||||
url = fmt.Sprintf("%s&options=%s", url, strings.Join(params.options, ","))
|
url = fmt.Sprintf("%s&options=%s", url, strings.Join(params.options, ","))
|
||||||
|
Loading…
Reference in New Issue
Block a user