Strophe.js Ping error when without SID

时间:2016-05-17 11:07:39

标签: ping strophe strophe.js

I am having an error, when i use ping without the user SID. DO i have to know the receiver's SID for the ping to work?? Or can i just ping a user to see if he is online or not without an SID with just the Userid like jid1@server.com?

Edit: I am using Ping plugin from Strophe.js

RECV: <body xmlns='http://jabber.org/protocol/httpbind'><iq xmlns='jabber:client' from='jid1@server.com' to='jid2@server.com/5250814551463483065313851' type='error' id='2:From Page2'><ping xmlns='urn:xmpp:ping'/><error code='503' type='cancel'><service-unavailable xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error></iq></body>

0 个答案:

没有答案