xmpp.go
changeset 4 a8fbec71a194
parent 2 4dabfef08c8c
child 5 faef59c8db05
--- a/xmpp.go	Sat Dec 24 11:05:54 2011 -0700
+++ b/xmpp.go	Sat Dec 24 11:18:52 2011 -0700
@@ -8,6 +8,7 @@
 
 import (
 	"fmt"
+	"io"
 	"net"
 	"os"
 )
@@ -23,6 +24,7 @@
 	//Out chan<- *Stanza
 	tcp *net.TCPConn
 }
+var _ io.Closer = &Client{}
 
 // Connect to the appropriate server and authenticate as the given JID
 // with the given password.
@@ -58,3 +60,7 @@
 	cl.tcp = c
 	return &cl, nil
 }
+
+func (c *Client) Close() os.Error {
+	return c.tcp.Close()
+}