[ejabberd] Question about presence hooks

Aaron aarond at cmu.edu
Tue Jul 24 01:37:33 MSK 2012


Thank you, Kirk, that's how I think I'll do it.

--Aaron

On 7/23/2012 5:02 PM, Kirk Bateman wrote:
>
> Aaron,
>
> You could just send an iq or message to a component when the user 
> clicks logout, that way you don't need to worry about connections 
> getting dropped from things like poor mobile signal (the dreaded 
> connection bouncing).
>
> Cheers
>
> Kirk Bateman
>
> On 23 Jul 2012 21:29, "Aaron" <aarond at cmu.edu <mailto:aarond at cmu.edu>> 
> wrote:
>
>     In ejabberd, is there some kind of hook for when a user logs out
>     rather than when a user goes offline due to lost connection or for
>     some other reason? The context is, I'm trying to impliment push
>     notifications for iPhone, and the user can either be disconnected
>     because the app is running in the background or disconnected
>     because the user pressed "log out" in our app. I want these to be
>     different things, and handled differently.
>
>     Thanks,
>     Aaron
>     _______________________________________________
>     ejabberd mailing list
>     ejabberd at jabber.ru <mailto:ejabberd at jabber.ru>
>     http://lists.jabber.ru/mailman/listinfo/ejabberd
>
>
>
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20120723/926fc79b/attachment.html>


More information about the ejabberd mailing list