<div class="gmail_extra"><div class="gmail_quote">On Mon, Dec 3, 2012 at 1:54 PM, Kevin Smith <span dir="ltr"><<a href="mailto:kevin@kismith.co.uk" target="_blank">kevin@kismith.co.uk</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<div class="im">On Mon, Dec 3, 2012 at 8:20 AM, andy nes <<a href="mailto:andynes83@gmail.com">andynes83@gmail.com</a>> wrote:<br>
> When a user changes their status in the client, how can app know for sure<br>
> that the status is changes at the server? Does xmpp server(ejabberd in my<br>
> case) send any acknowledgement for a successful change in the status?<br>
<br>
</div>Yes, you'll receive a copy when your status is set.<br></blockquote><div> </div><div>What is the 'Copy' that I get from Server?</div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<div class="im"><br>
> Also, at any time, what if the user (client lib) wants to find out his<br>
> status (available, busy etc)<br>
<br>
</div>It can remember it.<br>
<div class="im"><br>
> I know that the client can know the status as he can capture it when the<br>
> user changes it, but that might not always be true. What if the client sends<br>
> a status change, but due to some unforeseen reasons, the server doesn't<br>
> change that. Now the client and server are out of sync.<br>
<br>
</div>This will only happen if the connection from the client to the server<br>
has dropped, in which case you'll find out because you stop getting<br>
replies from the server and eventually your socket will close (you can<br>
use XEP-0198 acks to know what the last acked stanza was), in which<br>
case being able to poll the server wouldn't help because your session<br>
is already dead.<br>
<div class="im"><br>
> So, is there a way to find out my own status asking the server?<br>
<br>
</div>No.<br>
<br>
/K<br>
_______________________________________________<br>
JDev mailing list<br>
Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev" target="_blank">http://mail.jabber.org/mailman/listinfo/jdev</a><br>
Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org">JDev-unsubscribe@jabber.org</a><br>
_______________________________________________<br>
</blockquote></div><br></div>