mirror of
https://github.com/retailcrm/mg-bot-api-client-go.git
synced 2025-03-29 19:19:53 +03:00
commit
5268b49661
1 changed files with 1 additions and 1 deletions
|
@ -669,7 +669,7 @@ func (c *MgClient) WsMeta(events []string) (string, http.Header, error) {
|
|||
return url, nil, err
|
||||
}
|
||||
|
||||
url = fmt.Sprintf("%s%s%s%s", c.URL, prefix, "/ws?events=", strings.Join(events[:], ","))
|
||||
url = fmt.Sprintf("%s%s%s%s", strings.Replace(c.URL, "https", "ws", 1), prefix, "/ws?events=", strings.Join(events[:], ","))
|
||||
|
||||
if url == "" {
|
||||
err := errors.New("empty WS URL")
|
||||
|
|
Loading…
Add table
Reference in a new issue