refactor rpc with support for multiple authenticated sessions

This commit is contained in:
ansuz
2019-09-06 10:29:57 +02:00
parent 53142c91e7
commit 75b655e1e8
2 changed files with 253 additions and 185 deletions

View File

@@ -1,5 +1,10 @@
(function (window) {
var Util = {};
Util.tryParse = function (s) {
try { return JSON.parse(s); } catch (e) { return;}
};
Util.mkAsync = function (f) {
return function () {
var args = Array.prototype.slice.call(arguments);