6. Juni 2013

Immediate Disconnect for strophe.js

Updated A Website Chat made easy with XMPP and BOSH with my findings on immediate disconnect with strophe.js on page unload.

Problem:
The connection should be closed when the page unloads. Unfortunately strophe.js (at least up to version 1.0.2) disconnects asynchronously, which does not work when the page is destroyed. After some time the XMPP server will notice, that the page disappeared and will close the connection. But if you do not want to wait, then we have to force strophe to close immediately.

Solution:
There is a strophe patch, which allows for synchronous connection closing. The patch must be applied to the strophe.js file. Just 2 lines of code in strophe,js and one line before calling disconnect().

See A Website Chat made easy with XMPP and BOSH.

_happy_closing()

3. Juni 2013

Erster Weblin mit schwarzer Krone

Es passiert ja nicht wirklich viel im Weblin-Land, aber manchmal gibt es doch einen Grund zu feiern. Wir haben den ersten Weblin mit mehr als 2^16 Punkten (=65536) und deshalb mit schwarzer Krone am Avatar.

Hier ein Screenshot von http://www.weblin.com/toplins.php:


Macr@Soft ist ewiger Ruhm sicher.



_happy_pointscollecting()

http://de.blog.weblin.com/2013/06/erster-weblin-mit-schwarzer-krone.html
http://blog.weblin.com/2013/06/first-weblin-with-black-crown.html