Pong Event
    
 

Description

Fires when response to Ping arrives.


Syntax

Private Sub object_Pong(Contact, ErrorCode, ErrorText)



The Pong Event syntax has these parts:

Part Description
object A wodXMPP object.
Contact A XMPPContact object. Provides you with reference to XMPPContact object.
ErrorCode A Long value. Represents error number for error that occurred, if any.
ErrorText A String value. Returns string representation of the error, if any.

Remarks

Fired whenever wodXMPP receives ping back from the remote side. This will usually be caused because you 'pinged' server in order to check the connection state, but this can also occur if you pinged another contact. In that case, The event will also provide you with Contact parameter, which will reference to XMPPContact object. This will allow you to retrieve information about that Contact.

Many servers don't even implement Ping as a service of theirs. In that case ErrorCode will be set - but even that is good for you and can be considered as good in terms of connection being alive - you got *some* response, right?