forked from jshiffer/go-xmpp
Use transport factory function
This commit is contained in:
committed by
Mickaël Rémond
parent
8db608ccc1
commit
06a76160c8
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user