To execute the command to pre-bind BOSH session in JSON format, make a request using POST method to /rest/adhoc/bosh@domain.com
sending the following content:
{ "command" : { "node" : "pre-bind-bosh-session"", "fields" : [ { "var" : "from", "value" : "user_jid@domain/resource" }, { "var" : "hold", "value" : "1" }, { "var" : "wait", "value" : "60" } ] } }
This example replicates the same request presented above in XML format.