$#! | |
$build | |
$iq | |
$msg | |
$pres | |
A | |
addConnectionPlugin, Strophe | |
addHandler, Strophe. | |
addNamespace, Strophe | |
addTimedHandler, Strophe. | |
attach, Strophe. | |
attrs, Strophe. | |
B | |
Builder, Strophe. | |
C | |
c, Strophe. | |
cnode, Strophe. | |
connect, Strophe. | |
Connection, Strophe. | |
copyElement, Strophe | |
D | |
debug, Strophe | |
deleteHandler, Strophe. | |
deleteTimedHandler, Strophe. | |
disconnect, Strophe. | |
E | |
error, Strophe | |
escapeNode, Strophe | |
F | |
fatal, Strophe | |
flush, Strophe. | |
forEachChild, Strophe | |
G | |
getBareJidFromJid, Strophe | |
getDomainFromJid, Strophe | |
getNodeFromJid, Strophe | |
getResourceFromJid, Strophe | |
getText, Strophe | |
getUniqueId, Strophe. | |
I | |
info, Strophe | |
isTagEqual, Strophe | |
L | |
log, Strophe | |
P | |
pause, Strophe. | |
R | |
rawInput, Strophe. | |
rawOutput, Strophe. | |
reset, Strophe. | |
resume, Strophe. | |
S | |
send, Strophe. | |
sendIQ, Strophe. | |
serialize, Strophe | |
T | |
t, Strophe. | |
toString, Strophe. | |
tree, Strophe. | |
U | |
unescapeNode, Strophe | |
up, Strophe. | |
W | |
warn, Strophe | |
X | |
xmlElement, Strophe | |
xmlescape, Strophe | |
xmlInput, Strophe. | |
xmlOutput, Strophe. | |
xmlTextNode, Strophe |
Create a Strophe.Builder.
function $build( name, attrs )
Create a Strophe.Builder with an iq/ element as the root.
function $iq( attrs )
Create a Strophe.Builder with a message/ element as the root.
function $msg( attrs )
Create a Strophe.Builder with a presence/ element as the root.
function $pres( attrs )
Extends the Strophe.Connection object with the given plugin.
addConnectionPlugin: function ( name, ptype )
Add a stanza handler for the connection.
addHandler: function ( handler, ns, name, type, id, from, options )
This function is used to extend the current namespaces in Strophe.NS.
addNamespace: function ( name, value )
Add a timed handler to the connection.
addTimedHandler: function ( period, handler )
Attach to an already created and authenticated BOSH session.
attach: function ( jid, sid, rid, callback, wait, hold, wind )
Add or modify attributes of the current element.
attrs: function ( moreattrs )
Create a Strophe.Builder object.
Strophe.Builder = function ( name, attrs )
Add a child to the current element and make it the new current element.
c: function ( name, attrs )
Add a child to the current element and make it the new current element.
cnode: function ( elem )
Starts the connection process.
connect: function ( jid, pass, callback, wait, hold )
Create and initialize a Strophe.Connection object.
Strophe.Connection = function ( service )
Copy an XML DOM element.
copyElement: function ( elem )
Log a message at the Strophe.LogLevel.DEBUG level.
debug: function( msg )
Delete a stanza handler for a connection.
deleteHandler: function ( handRef )
Delete a timed handler for a connection.
deleteTimedHandler: function ( handRef )
Start the graceful disconnection process.
disconnect: function ( reason )
Log a message at the Strophe.LogLevel.ERROR level.
error: function ( msg )
Escape the node part (also called local part) of a JID.
escapeNode: function ( node )
Log a message at the Strophe.LogLevel.FATAL level.
fatal: function ( msg )
Immediately send any pending outgoing data.
flush: function ()
Map a function over some or all child elements of a given element.
forEachChild: function ( elem, elemName, func )
Get the bare JID from a JID String.
getBareJidFromJid: function ( jid )
Get the domain portion of a JID String.
getDomainFromJid: function ( jid )
Get the node portion of a JID String.
getNodeFromJid: function ( jid )
Get the resource portion of a JID String.
getResourceFromJid: function ( jid )
Get the concatenation of all text children of an element.
getText: function ( elem )
Generate a unique ID for use in iq/ elements.
getUniqueId: function ( suffix )
Log a message at the Strophe.LogLevel.INFO level.
info: function ( msg )
Compare an element’s tag name with a string.
isTagEqual: function ( el, name )
User overrideable logging function.
log: function ( level, msg )
Pause the request manager.
pause: function ()
User overrideable function that receives raw data coming into the connection.
rawInput: function ( data )
User overrideable function that receives raw data sent to the connection.
rawOutput: function ( data )
Reset the connection.
reset: function ()
Resume the request manager.
resume: function ()
Send a stanza.
send: function ( elem )
Helper function to send IQ stanzas.
sendIQ: function( elem, callback, errback, timeout )
Render a DOM element and all descendants to a String.
serialize: function ( elem )
Add a child text element.
t: function ( text )
Serialize the DOM tree to a String.
toString: function ()
Return the DOM tree.
tree: function ()
Unescape a node part (also called local part) of a JID.
unescapeNode: function ( node )
Make the current parent element the new current element.
up: function ()
Log a message at the Strophe.LogLevel.WARN level.
warn: function ( msg )
Create an XML DOM element.
xmlElement: function ( name )
Excapes invalid xml characters.
xmlescape: function( text )
User overrideable function that receives XML data coming into the connection.
xmlInput: function ( elem )
User overrideable function that receives XML data sent to the connection.
xmlOutput: function ( elem )
Creates an XML DOM text node.
xmlTextNode: function ( text )