3
0
mirror of https://github.com/42wim/matterbridge.git synced 2024-12-27 13:42:35 +01:00
matterbridge/vendor/github.com/mattn/go-xmpp/xmpp_subscription.go

21 lines
434 B
Go
Raw Normal View History

2016-07-13 21:04:28 +02:00
package xmpp
import (
"fmt"
)
func (c *Client) ApproveSubscription(jid string) {
fmt.Fprintf(c.conn, "<presence to='%s' type='subscribed'/>",
xmlEscape(jid))
}
func (c *Client) RevokeSubscription(jid string) {
fmt.Fprintf(c.conn, "<presence to='%s' type='unsubscribed'/>",
xmlEscape(jid))
}
func (c *Client) RequestSubscription(jid string) {
fmt.Fprintf(c.conn, "<presence to='%s' type='subscribe'/>",
xmlEscape(jid))
}