Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Pull request Compare This branch is 321 commits behind metajack:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
README.markdown
strophe.ping.js

README.markdown

Strophe.ping.js

Strophe.ping.js is a plugin to provide XMPP Ping ( XEP-0199 ).

Usage

After you connected sucessfully to the XMPP server you can send a ping to a XMPP client or server:

connection.ping.ping( "serviceJID@server.org", success, error );

You can also add a ping handler to receive pings:

conncection.ping.addPingHandler( handler );

Within your ping handler function you surely want to reply with a pong iq:

myHandler = function( ping ){
  ...
  conncection.ping.pong( ping )
  ...
}

ToDo

  • write specs
Something went wrong with that request. Please try again.