Skip to content
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
..
Failed to load latest commit information.
spec
src
README.markdown

README.markdown

strophe.cmds.js

strophe.cmds.js is a plugin to provide Ad-Hoc Commands ( XEP-0050 ).

Usage

Client side

cmd = new Strophe.Commands.RemoteCommand(conn, jid, node);

cmd.execute({

  success: function(res, cmd){

    proccessFields( cmd.form.fields );
    doSomething();
    resp = new Strophe.x.Form();
    cmd.complete({ responseForm: resp });

  error: myErrorFunction

}});

You can also use the interactive GUI mode

cmd.execute({gui:true});

Server side

Dependencies

  • strophe.disco.js
  • strophe.x.js
  • jQuery
  • jQueryUI (for GUI mode)

ToDo

  • Write specs for UI commands
  • Write better documentation

Authors

Something went wrong with that request. Please try again.