From 95f4e3448ecbdbd92816f21ccfc3d0c7c386bfbb Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 25 Mar 2017 21:05:02 +0100 Subject: [PATCH] Use API_URL_SUFFIX_V3 (mattermost) --- matterclient/matterclient.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go index c641e9f0..beae8070 100644 --- a/matterclient/matterclient.go +++ b/matterclient/matterclient.go @@ -159,11 +159,11 @@ func (m *MMClient) Login() error { m.Client.SetTeamId(m.Team.Id) // setup websocket connection - wsurl := wsScheme + m.Credentials.Server + model.API_URL_SUFFIX + "/users/websocket" + wsurl := wsScheme + m.Credentials.Server + model.API_URL_SUFFIX_V3 + "/users/websocket" header := http.Header{} header.Set(model.HEADER_AUTH, "BEARER "+m.Client.AuthToken) - m.log.Debug("WsClient: making connection") + m.log.Debugf("WsClient: making connection: %s", wsurl) for { wsDialer := &websocket.Dialer{Proxy: http.ProxyFromEnvironment, TLSClientConfig: &tls.Config{InsecureSkipVerify: m.SkipTLSVerify}} m.WsClient, _, err = wsDialer.Dial(wsurl, header)