Description: Build against x-net-dev v0.7.
Author: Martin Dosch <martin@mdosch.de>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/main.go
+++ b/main.go
@@ -900,9 +900,7 @@
 		TlsConfig: wsTLSConfig,
 	}
 	wsConfig.Protocol = append(wsConfig.Protocol, "xmpp")
-	ctx, cancel := context.WithTimeout(context.Background(), timeout)
-	defer cancel()
-	wsConn, err := wsConfig.DialContext(ctx)
+	wsConn, err := websocket.DialConfig(wsConfig)
 	if err != nil {
 		fmt.Println(statusNOK)
 		fmt.Println(err)
