summaryrefslogtreecommitdiffstats
path: root/matterclient
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-03-25 21:05:02 +0100
committerWim <wim@42.be>2017-03-25 21:05:02 +0100
commit95f4e3448ecbdbd92816f21ccfc3d0c7c386bfbb (patch)
tree7e13ae2070223a0ff799806842055ee642d4fb31 /matterclient
parenteacb1c1771cec126593f99f50aca4584236475fa (diff)
downloadmatterbridge-msglm-95f4e3448ecbdbd92816f21ccfc3d0c7c386bfbb.tar.gz
matterbridge-msglm-95f4e3448ecbdbd92816f21ccfc3d0c7c386bfbb.tar.bz2
matterbridge-msglm-95f4e3448ecbdbd92816f21ccfc3d0c7c386bfbb.zip
Use API_URL_SUFFIX_V3 (mattermost)
Diffstat (limited to 'matterclient')
-rw-r--r--matterclient/matterclient.go4
1 files 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)