Subject: How to know if user is connected?
I am creating a layer around the ag software xmpp library. The main function is SendMessage which sends a message to another user (not so impresive). When the user is not connected, the layer should connect to the server. After loggin in the message can be send.
My question is how can i decide when a user is connected. I looked at the ConnectionState but this is always Connecting, even when i am connected. I need to know this so that loggin in is only executed ones (or when the connection is lost).
My question is how can i decide when a user is connected. I looked at the ConnectionState but this is always Connecting, even when i am connected. I need to know this so that loggin in is only executed ones (or when the connection is lost).