1  | static O rpc(S botName, S method, O... args) {
 | 
2  | ret unstructure_matchOK2OrFail(  | 
3  | sendToLocalBot(botName, rpc_makeCall(method, args)));  | 
4  | }  | 
5  | |
6  | static O rpc(DialogIO bot, S method, O... args) {
 | 
7  | ret unstructure_matchOK2OrFail(  | 
8  | bot.ask(rpc_makeCall(method, args)));  | 
9  | }  | 
10  | |
11  | static S rpc_makeCall(S method, O... args) {
 | 
12  | if (empty(args))  | 
13  | ret "call " + method;  | 
14  |   ret format("call *", concatLists((L) ll(method), asList(args)));
 | 
15  | }  | 
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1004750 | 
| Snippet name: | rpc - remote procedure call (to a methodsBot) on local machine | 
| Eternal ID of this version: | #1004750/7 | 
| Text MD5: | bd717956311b52f36bda3c48a773a803 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2018-05-20 14:16:56 | 
| Source code size: | 443 bytes / 15 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 840 / 827 | 
| Version history: | 6 change(s) | 
| Referenced in: | [show references] |