mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2026-05-23 12:23:46 -07:00
Add OAuth2 support
Use provided host for certificate verification Remove redundant ANONYMOUS mechanism support
This commit is contained in:
+11
-11
@@ -1,19 +1,19 @@
|
||||
package xmpp
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func (c* Client) PingC2S(jid, server string) {
|
||||
fmt.Fprintf(c.conn, "<iq from='%s' to='%s' id='c2s1' type='get'>\n" +
|
||||
"<ping xmlns='urn:xmpp:ping'/>\n" +
|
||||
"</iq>",
|
||||
xmlEscape(jid), xmlEscape(server))
|
||||
func (c *Client) PingC2S(jid, server string) {
|
||||
fmt.Fprintf(c.conn, "<iq from='%s' to='%s' id='c2s1' type='get'>\n"+
|
||||
"<ping xmlns='urn:xmpp:ping'/>\n"+
|
||||
"</iq>",
|
||||
xmlEscape(jid), xmlEscape(server))
|
||||
}
|
||||
|
||||
func (c* Client) PingS2S(fromServer, toServer string) {
|
||||
fmt.Fprintf(c.conn, "<iq from='%s' to='%s' id='s2s1' type='get'>\n" +
|
||||
"<ping xmlns='urn:xmpp:ping'/>\n" +
|
||||
"</iq>",
|
||||
xmlEscape(fromServer), xmlEscape(toServer))
|
||||
func (c *Client) PingS2S(fromServer, toServer string) {
|
||||
fmt.Fprintf(c.conn, "<iq from='%s' to='%s' id='s2s1' type='get'>\n"+
|
||||
"<ping xmlns='urn:xmpp:ping'/>\n"+
|
||||
"</iq>",
|
||||
xmlEscape(fromServer), xmlEscape(toServer))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user