diff -r 6121aa2f21b1 -r a8fbec71a194 xmpp.go --- 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() +}