forked from jshiffer/go-xmpp
Update xmpp_subscription.go (#131)
https://www.rfc-editor.org/rfc/rfc6121.html#section-3.3.1
This commit is contained in:
parent
2eb234970c
commit
369824c83a
@ -14,6 +14,11 @@ func (c *Client) RevokeSubscription(jid string) {
|
||||
xmlEscape(jid))
|
||||
}
|
||||
|
||||
func (c *Client) RetrieveSubscription(jid string) {
|
||||
fmt.Fprintf(c.conn, "<presence to='%s' type='unsubscribe'/>",
|
||||
xmlEscape(jid))
|
||||
}
|
||||
|
||||
func (c *Client) RequestSubscription(jid string) {
|
||||
fmt.Fprintf(c.conn, "<presence to='%s' type='subscribe'/>",
|
||||
xmlEscape(jid))
|
||||
|
Loading…
Reference in New Issue
Block a user