Pārlūkot izejas kodu

error propagation with generated calls

master
peter 4 gadus atpakaļ
vecāks
revīzija
ef5a83f1d4
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 1
    1
      package.json
  2. 2
    2
      src/Frontend.ts

+ 1
- 1
package.json Parādīt failu

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

+ 2
- 2
src/Frontend.ts Parādīt failu

@@ -175,7 +175,7 @@ export class RPCSocket implements I.Socket{
175 175
         sesame = appendComma(sesame)
176 176
 
177 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,7 +196,7 @@ export class RPCSocket implements I.Socket{
196 196
 
197 197
         return eval( `
198 198
         async (${headerArgs} callback) => {
199
-            const r = await this.socket.call("${fnName}", ${sesame} ${argParams})
199
+            const r = await this.call("${fnName}", ${sesame} ${argParams})
200 200
             if(r && r.result === 'Success'){
201 201
                 this.socket.hook(r.uuid, callback)
202 202
             }

Notiek ielāde…
Atcelt
Saglabāt