provide examples of valid and invalid rpc calls
This commit is contained in:
parent
7187d3c550
commit
bd9efd7c04
@ -30,6 +30,20 @@ define([
|
|||||||
if (e) { return void console.error(e); }
|
if (e) { return void console.error(e); }
|
||||||
console.log(msg);
|
console.log(msg);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var list = Cryptpad.getUserChannelList();
|
||||||
|
if (list.length) {
|
||||||
|
rpc.send('GET_FILE_SIZE', list[0], function (e, msg) {
|
||||||
|
if (e) {
|
||||||
|
return void console.error(e);
|
||||||
|
}
|
||||||
|
console.log(msg);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
rpc.send('GET_FILE_SIZE', 'pewpew', function (e, msg) {
|
||||||
|
if (e) { return void console.error(e); }
|
||||||
|
console.log(msg);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user