Update xmpp_subscription.go (#131)

https://www.rfc-editor.org/rfc/rfc6121.html#section-3.3.1
This commit is contained in:
vakalmikov 2023-03-02 04:32:52 +03:00 committed by GitHub
parent 2eb234970c
commit 369824c83a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))