From 874e70e091173c5534dce690802d9008666d7f89 Mon Sep 17 00:00:00 2001 From: Like-all Date: Mon, 13 Apr 2015 23:41:49 +0300 Subject: [PATCH] Subscription handling --- xmpp_subscription.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 xmpp_subscription.go diff --git a/xmpp_subscription.go b/xmpp_subscription.go new file mode 100644 index 0000000..b714c12 --- /dev/null +++ b/xmpp_subscription.go @@ -0,0 +1,20 @@ +package xmpp + +import ( + "fmt" +) + +func (c* Client) ApproveSubscription(jid string) { + fmt.Fprintf(c.conn, "", + xmlEscape(jid)) +} + +func (c* Client) RevokeSubscription(jid string) { + fmt.Fprintf(c.conn, "", + xmlEscape(jid)) +} + +func (c* Client) RequestSubscription(jid string) { + fmt.Fprintf(c.conn, "", + xmlEscape(jid)) +}