Use transport factory function

This commit is contained in:
Wichert Akkerman
2019-10-11 07:19:55 +02:00
committed by Mickaël Rémond
parent 8db608ccc1
commit 06a76160c8
3 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ func NewClient(config Config, r *Router) (c *Client, err error) {
c.config.ConnectTimeout = 15 // 15 second as default
}
c.transport = &XMPPTransport{Config: config.TransportConfiguration}
c.transport = NewTransport(config.TransportConfiguration)
return
}