The Connection that will use BOSH.
The Connection that owns this transport.
The wrapper element name whose children Connection unwraps before
dispatch. BOSH overloads it as a boolean toggle, hence the union.
Private function that makes sure all pending requests are aborted.
Attach to an already created and authenticated BOSH session.
This function is provided to allow Strophe to attach to BOSH sessions which have been created externally, perhaps by a Web application. This is often used to support auto-login type features without putting user credentials into the page.
The full JID that is bound by the session.
The SID of the BOSH session.
The current RID of the BOSH session. This RID will be used by the next request.
The connect callback function.
The optional HTTPBIND wait value. This is the time the server will wait before returning an empty result for a request. The default setting of 60 seconds is recommended. Other settings will require tweaks to the Strophe.TIMEOUT value.
The optional HTTPBIND hold value. This is the number of connections the server will hold at one time. This should almost always be set to 1 (the default).
The optional HTTBIND window value. This is the allowed range of request ids that are valid. The default is 5.
Private function that initializes the BOSH connection. Creates and sends the Request that initializes the BOSH connection.
The optional HTTPBIND wait value. This is the time the server will wait before returning an empty result for a request. The default setting of 60 seconds is recommended. Other settings will require tweaks to the Strophe.TIMEOUT value.
The optional HTTPBIND hold value. This is the number of connections the server will hold at one time. This should almost always be set to 1 (the default).
Private handler for initial connection request. This handler is used to process the Bosh-part of the initial request.
The received stanza.
Private part of Connection.disconnect for Bosh
This stanza will be sent before disconnecting.
Private function to disconnect. Resets the SID and RID.
Private function to check if the Request queue is empty.
True, if there are no Requests queued, False otherwise.
Called on stream start/restart when no stream:features has been received and sends a blank poll request.
Optionalcallback: ConnectionCallbackPrivate timeout handler for handling non-graceful disconnection. Cancels all remaining Requests and clears the queue.
Private handler called by Connection#_onIdle|Connection._onIdle(). Sends all queued Requests or polls with empty Request if there are none.
Private function to get a stanza out of a request. Tries to extract a stanza out of a Request Object. When this fails the current connection will be disconnected.
The Request.
The stanza that was passed.
Reset the connection. This function is called by the reset function of the Connection
Attempt to restore a cached BOSH session
The full JID that is bound by the session. This parameter is optional but recommended, specifically in cases where prebinded BOSH sessions are used where it's important to know that the right session is being restored.
The connect callback function.
The optional HTTPBIND wait value. This is the time the server will wait before returning an empty result for a request. The default setting of 60 seconds is recommended. Other settings will require tweaks to the Strophe.TIMEOUT value.
The optional HTTPBIND hold value. This is the number of connections the server will hold at one time. This should almost always be set to 1 (the default).
The optional HTTBIND window value. This is the allowed range of request ids that are valid. The default is 5.
Private part of the Connection.send function for BOSH Just triggers the RequestHandler to send the messages that are in the queue
Send an xmpp:restart stanza.
StaticgetStaticgetStaticsetStaticset
Private helper class that handles BOSH Connections The Bosh class is used internally by Connection to encapsulate BOSH sessions. It is not meant to be used from user's code.