rayo / xmpp

Fork of the XMPP XEP repo
http://gitorious.org/xmpp
3 stars 3 forks source link

rayo server that comes online after rayo client is not aware of client presence #64

Open crienzo opened 11 years ago

crienzo commented 11 years ago

In this scenario, a rayo client is connected to its own domain's xmpp server and sends directed presence to the rayo domain. If the rayo server is not running, it will never see this presence notification.

benlangfeld commented 11 years ago

I wonder if we should just use real presence subscriptions? @loopingrange ?

crienzo commented 11 years ago

Another thing I noticed is the ahn rayo client will send ping to the rayo domain. So, I can detect the existence of the client. However, I still not know the client's availability and using ping would be hacky.

crienzo commented 11 years ago

One possible solution is for the server to send a presence probe for any unknown clients that ping it. I'll experiment with this.

crienzo commented 11 years ago

OK - tried sending probe to ejabberd, but that didn't work. For now, I'll just assume the client is online if I get pinged.

crienzo commented 11 years ago

This scenario can be handled by a rayo gateway or a modified XMPP server.