mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2026-05-23 20:33:46 -07:00
example now allows passing of server to connect to as argument\nrm line ending space
This commit is contained in:
@@ -46,7 +46,7 @@ type Client struct {
|
||||
|
||||
// NewClient creates a new connection to a host given as "hostname" or "hostname:port".
|
||||
// If host is not specified, the DNS SRV should be used to find the host from the domainpart of the JID.
|
||||
// Default the port to 5222.
|
||||
// Default the port to 5222.
|
||||
func NewClient(host, user, passwd string) (*Client, os.Error) {
|
||||
addr := host
|
||||
|
||||
|
||||
Reference in New Issue
Block a user