metajack/strophejs-plugins — pull request #69 by WasserX (2012-03-12 09:20:33+00:00)
Title: Get JID and Service info when Strophe attaches a session

The function onStatus of the pubsub plugin sets the JID and Service vars needed for executing actions when Strophe sends an status of CONNECTED.

If the user is reattaching / attaching to an existing session, those variables are not initialized.

This commit makes it possible to update those variables when Strophe reports the status ATTACHED.