maxpowel / jQuery-XMPP-plugin

Javascript library for the XMMP protocol
http://plugins.jquery.com/project/xmpp-lib
163 stars 50 forks source link

My free time, free to work all this Project #27

Open golfixe opened 11 years ago

golfixe commented 11 years ago

xmpp

this source:

Part II ;) Im working!

Sem T tulo

Continuing the project. I continue to work on the project soon to publish all the code here. It has been able to use external services if the server allows. It is time consuming because each menu has its time of creation. I'll be back soon with more news

maxpowel commented 11 years ago

Hi, it looks a nice app. I you need any help or feature just request it ;)

golfixe commented 11 years ago

Hello, yes you need can always ask me, I would also like to know if it is possible to refresh the page without the link disconnect. I wanted to create a footer chat similar to that already use on my site but I can not make the call do not hang while reloading the page. is that it can store all your contacts in one session and it will connect again but this would not be the best way forward again because the presence of other users.

maxpowel commented 11 years ago

Hi, sorry for late. Check the method attach where you can provide the SID and RID values to continue using your session. Save all data (roster list for example) is responsability of you app.

Anyway, this method is not recommended because unexpected things may occur. For example bad synchronization of the RID value (task delegated to your app which is not trivial) will provoke an exception in the server and the session will be end or whatever depending on your server.

Also sensible information that only must be managed internally (SID and RID) are exposed. It reduces the security and increments the posibility of errors.

I dont know how is your app, but sites like facebook or gmail NEVER refresh the page (they use ajax to request new contents) to avoid the painfull method of attach existing sessions. Only the full page is requested when user enters or user press F5, a few situations where is not a problem execute the login process.