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.

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.

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.


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.