example/interact.go
changeset 153 bbd4166df95d
parent 142 0ff033eed887
child 159 fd4089f717b2
--- a/example/interact.go	Sun Sep 22 17:43:34 2013 -0500
+++ b/example/interact.go	Sat Sep 28 13:02:17 2013 -0600
@@ -42,7 +42,7 @@
 	}
 
 	tlsConf := tls.Config{InsecureSkipVerify: true}
-	c, err := xmpp.NewClient(&jid, *pw, tlsConf, nil)
+	c, err := xmpp.NewClient(&jid, *pw, tlsConf, nil, xmpp.Presence{}, nil)
 	if err != nil {
 		log.Fatalf("NewClient(%v): %v", jid, err)
 	}
@@ -55,11 +55,6 @@
 		fmt.Println("done reading")
 	}(c.Recv)
 
-	err = c.StartSession(&xmpp.Presence{})
-	if err != nil {
-		log.Fatalf("StartSession: %v", err)
-	}
-	c.Roster.Update()
 	roster := c.Roster.Get()
 	fmt.Printf("%d roster entries:\n", len(roster))
 	for i, entry := range roster {