Lines Matching refs:messenger
20 let messenger = {};
21 messenger.send = function (groupName, functionName, ...args) {
23 let params = messenger.prepareArgs(...args);
25 resolve(messenger.parseJsonResult(result));
27 reject(messenger.parseJsonResult(error));
31 messenger.parseJsonResult = function (data) {
41 messenger.prepareArgs = function (...args) {
45 result[i] = messenger.packageCallback(result[i]);
50 messenger.packageCallback = function (func) {
52 data = messenger.parseJsonResult(data);
60 return messenger;
124 fetch.messenger = GroupMessenger.create();
126 … return await CommonCallbackEx.catching(this.messenger.send("groupName", "fetch", param), param);