Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
$#!
 $build, Strophe.SASLMechanism
 $iq, Strophe.SASLMechanism
 $msg, Strophe.SASLMechanism
 $pres, Strophe.SASLMechanism
A
 addConnectionPlugin, Strophe
 addHandler, Strophe.Connection
 addNamespace, Strophe
 addProtocolErrorHandler, Strophe.Connection
 addTimedHandler, Strophe.Connection
 attach, Strophe.Connection
 attrs, Strophe.Builder
 authenticate, Strophe.Connection
B
 bind, Strophe.Connection
 Builder, Strophe.Builder.Strophe
C
 c, Strophe.Builder
 cnode, Strophe.Builder
 connect, Strophe.Connection
 Connection, Strophe.Connection.Strophe
 copyElement, Strophe
 createHtml, Strophe
D
 debug, Strophe
 deleteHandler, Strophe.Connection
 deleteTimedHandler, Strophe.Connection
 disconnect, Strophe.Connection
E
 error, Strophe
 escapeNode, Strophe
F
 fatal, Strophe
 flush, Strophe.Connection
 forEachChild, Strophe
G
 getBareJidFromJid, Strophe
 getDomainFromJid, Strophe
 getNodeFromJid, Strophe
 getResourceFromJid, Strophe
 getText, Strophe
 getUniqueId, Strophe.Connection
H
 h, Strophe.Builder
I
 info, Strophe
 isTagEqual, Strophe
L
 log, Strophe
N
 nextValidRid, Strophe.Connection
P
 pause, Strophe.Connection
R
 rawInput, Strophe.Connection
 rawOutput, Strophe.Connection
 registerSASLMechanism, Strophe.Connection
 registerSASLMechanisms, Strophe.Connection
 reset, Strophe.Connection
 restore, Strophe.Connection
 resume, Strophe.Connection
 root, Strophe.Builder
S
 send, Strophe.Connection
 sendIQ, Strophe.Connection
 sendPresence, Strophe.Connection
 serialize, Strophe
 setProtocol, Strophe.Connection
 sortMechanismsByPriority, Strophe.Connection
T
 t, Strophe.Builder
 test, Strophe.SASLMechanism
 toString, Strophe.Builder
 tree, Strophe.Builder
U
 unescapeNode, Strophe
 up, Strophe.Builder
V
 validAttribute, Strophe.XHTML
 validTag, Strophe.XHTML
function $build(name,
attrs)
Create a Strophe.Builder.
function $iq(attrs)
Create a Strophe.Builder with an iq/ element as the root.
function $msg(attrs)
Create a Strophe.Builder with a message/ element as the root.
function $pres(attrs)
Create a Strophe.Builder with a presence/ element as the root.
addConnectionPlugin(name,
ptype)
Extends the Strophe.Connection object with the given plugin.
addHandler(handler,
ns,
name,
type,
id,
from,
options)
Add a stanza handler for the connection.
addNamespace(name,
value)
This function is used to extend the current namespaces in Strophe.NS.
addProtocolErrorHandler(protocol,
status_code,
callback)
Register a handler function for when a protocol (websocker or HTTP) error occurs.
addTimedHandler(period,
handler)
Add a timed handler to the connection.
attach(jid,
sid,
rid,
callback,
wait,
hold,
wind)
Attach to an already created and authenticated BOSH session.
attrs(moreattrs)
Add or modify attributes of the current element.
authenticate(matched)
Set up authentication
bind()
Sends an IQ to the XMPP server to bind a JID resource for this session.
Strophe.Builder = class Builder
Create a Strophe.Builder object.
c(name,
attrs,
text)
Add a child to the current element and make it the new current element.
cnode(elem)
Add a child to the current element and make it the new current element.
connect(jid,  
pass,  
callback,  
wait,  
hold,  
route,  
authcid,  
disconnection_timeout =  3000)
Starts the connection process.
Strophe.Connection = class Connection
Create and initialize a Strophe.Connection object.
copyElement(elem)
Copy an XML DOM element.
createHtml(elem)
Copy an HTML DOM element into an XML DOM.
debug(msg)
Log a message at the Strophe.LogLevel.DEBUG level.
deleteHandler(handRef)
Delete a stanza handler for a connection.
deleteTimedHandler(handRef)
Delete a timed handler for a connection.
disconnect(reason)
Start the graceful disconnection process.
error(msg)
Log a message at the Strophe.LogLevel.ERROR level.
escapeNode(node)
Escape the node part (also called local part) of a JID.
fatal(msg)
Log a message at the Strophe.LogLevel.FATAL level.
flush()
Immediately send any pending outgoing data.
forEachChild(elem,
elemName,
func)
Map a function over some or all child elements of a given element.
getBareJidFromJid(jid)
Get the bare JID from a JID String.
getDomainFromJid(jid)
Get the domain portion of a JID String.
getNodeFromJid(jid)
Get the node portion of a JID String.
getResourceFromJid(jid)
Get the resource portion of a JID String.
getText(elem)
Get the concatenation of all text children of an element.
getUniqueId(suffix)
Generate a unique ID for use in iq/ elements.
h(html)
Replace current element contents with the HTML passed in.
info(msg)
Log a message at the Strophe.LogLevel.INFO level.
isTagEqual(el,
name)
Compare an element’s tag name with a string.
log(level,
msg)
User overrideable logging function.
nextValidRid(rid)
User overrideable function that receives the new valid rid.
pause()
Pause the request manager.
rawInput(data)
User overrideable function that receives raw data coming into the connection.
rawOutput(data)
User overrideable function that receives raw data sent to the connection.
registerSASLMechanism(Mechanism)
Register a single SASL mechanism, to be supported by this client.
registerSASLMechanisms(mechanisms)
Register the SASL mechanisms which will be supported by this instance of Strophe.Connection (i.e.
reset()
Reset the connection.
restore(jid,
callback,
wait,
hold,
wind)
Attempt to restore a cached BOSH session.
resume()
Resume the request manager.
root()
Make the root element the new current element.
send(elem)
Send a stanza.
sendIQ(elem,
callback,
errback,
timeout)
Helper function to send IQ stanzas.
sendPresence(elem,
callback,
errback,
timeout)
Helper function to send presence stanzas.
serialize(elem)
Render a DOM element and all descendants to a String.
setProtocol()
Select protocal based on this.options or this.service
sortMechanismsByPriority(mechanisms)
Sorts an array of objects with prototype SASLMechanism according to their priorities.
t(text)
Add a child text element.
test()
Checks if mechanism able to run.
toString()
Serialize the DOM tree to a String.
tree()
Return the DOM tree.
unescapeNode(node)
Unescape a node part (also called local part) of a JID.
up()
Make the current parent element the new current element.
Utility method to determine whether an attribute is allowed as recommended per XEP-0071
Utility method to determine whether a tag is allowed in the XHTML_IM namespace.
Close