Use UUIDs for jsonrpc requestes

This commit is contained in:
Nils Maier 2013-07-31 22:17:06 +02:00
parent 39ecd3a3d6
commit 993363d309

View File

@ -63,7 +63,7 @@ function(_, JSON, name, utils, alerts) {
invoke: function(opts) { invoke: function(opts) {
var data = { var data = {
jsonrpc: 2.0, jsonrpc: 2.0,
id: name + '_' + utils.randStr(), id: utils.uuid(),
method: opts.name, method: opts.name,
params: opts.params && opts.params.length ? opts.params : undefined params: opts.params && opts.params.length ? opts.params : undefined
}; };