Browse Source

error propagation with generated calls

master
peter 4 years ago
parent
commit
ef5a83f1d4
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      package.json
  2. 2
    2
      src/Frontend.ts

+ 1
- 1
package.json View File

1
 {
1
 {
2
   "name": "rpclibrary",
2
   "name": "rpclibrary",
3
-  "version": "1.8.2",
3
+  "version": "1.8.3",
4
   "description": "rpclibrary is a websocket on steroids!",
4
   "description": "rpclibrary is a websocket on steroids!",
5
   "main": "./js/Index.js",
5
   "main": "./js/Index.js",
6
   "repository": {
6
   "repository": {

+ 2
- 2
src/Frontend.ts View File

175
         sesame = appendComma(sesame)
175
         sesame = appendComma(sesame)
176
 
176
 
177
         return eval(`async (${headerArgs}) => { 
177
         return eval(`async (${headerArgs}) => { 
178
-            return await this.socket.call("${fnName}", ${sesame} ${argParams})
178
+            return await this.call("${fnName}", ${sesame} ${argParams})
179
         }`)
179
         }`)
180
     }
180
     }
181
 
181
 
196
 
196
 
197
         return eval( `
197
         return eval( `
198
         async (${headerArgs} callback) => {
198
         async (${headerArgs} callback) => {
199
-            const r = await this.socket.call("${fnName}", ${sesame} ${argParams})
199
+            const r = await this.call("${fnName}", ${sesame} ${argParams})
200
             if(r && r.result === 'Success'){
200
             if(r && r.result === 'Success'){
201
                 this.socket.hook(r.uuid, callback)
201
                 this.socket.hook(r.uuid, callback)
202
             }
202
             }

Loading…
Cancel
Save