Przeglądaj źródła

update to use socket.io 4.5.4

master
nitowa 1 rok temu
rodzic
commit
dbed0081db
6 zmienionych plików z 167 dodań i 287 usunięć
  1. 148
    273
      package-lock.json
  2. 4
    4
      package.json
  3. 3
    2
      src/Backend.ts
  4. 1
    1
      src/PromiseIO/Client.ts
  5. 4
    6
      src/PromiseIO/Server.ts
  6. 7
    1
      src/Types.ts

+ 148
- 273
package-lock.json Wyświetl plik

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "rpclibrary",
3
-  "version": "2.4.2",
3
+  "version": "2.4.4",
4 4
   "lockfileVersion": 1,
5 5
   "requires": true,
6 6
   "dependencies": {
@@ -235,6 +235,11 @@
235 235
       "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==",
236 236
       "dev": true
237 237
     },
238
+    "@socket.io/component-emitter": {
239
+      "version": "3.1.0",
240
+      "resolved": "https://registry.npmjs.org/@socket.io/component-emitter/-/component-emitter-3.1.0.tgz",
241
+      "integrity": "sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg=="
242
+    },
238 243
     "@types/chai": {
239 244
       "version": "4.2.21",
240 245
       "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.2.21.tgz",
@@ -246,10 +251,15 @@
246 251
       "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==",
247 252
       "dev": true
248 253
     },
249
-    "@types/engine.io": {
250
-      "version": "3.1.4",
251
-      "resolved": "https://registry.npmjs.org/@types/engine.io/-/engine.io-3.1.4.tgz",
252
-      "integrity": "sha512-98rXVukLD6/ozrQ2O80NAlWDGA4INg+tqsEReWJldqyi2fulC9V7Use/n28SWgROXKm6003ycWV4gZHoF8GA6w==",
254
+    "@types/cookie": {
255
+      "version": "0.4.1",
256
+      "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.4.1.tgz",
257
+      "integrity": "sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q=="
258
+    },
259
+    "@types/cors": {
260
+      "version": "2.8.13",
261
+      "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.13.tgz",
262
+      "integrity": "sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==",
253 263
       "requires": {
254 264
         "@types/node": "*"
255 265
       }
@@ -317,18 +327,20 @@
317 327
       "integrity": "sha512-BqCU9uIFkUH9Sgo2uLYbmIiFB1T+VBiM8AI/El3LIAI5KzwtckeSG+3WOYZr9aMoX4UIvRFBWBeSaOu6hFue2Q=="
318 328
     },
319 329
     "@types/socket.io": {
320
-      "version": "2.1.8",
321
-      "resolved": "https://registry.npmjs.org/@types/socket.io/-/socket.io-2.1.8.tgz",
322
-      "integrity": "sha512-NIQfh9WwJuJKlgmby4NgwMpoBOmNPCDgaRNPiLYZBtkbHkszK/9R52B5yGkd5a34rbVdAADuo8FhOS/5AZDemw==",
330
+      "version": "3.0.2",
331
+      "resolved": "https://registry.npmjs.org/@types/socket.io/-/socket.io-3.0.2.tgz",
332
+      "integrity": "sha512-pu0sN9m5VjCxBZVK8hW37ZcMe8rjn4HHggBN5CbaRTvFwv5jOmuIRZEuddsBPa9Th0ts0SIo3Niukq+95cMBbQ==",
323 333
       "requires": {
324
-        "@types/engine.io": "*",
325
-        "@types/node": "*"
334
+        "socket.io": "*"
326 335
       }
327 336
     },
328 337
     "@types/socket.io-client": {
329
-      "version": "1.4.33",
330
-      "resolved": "https://registry.npmjs.org/@types/socket.io-client/-/socket.io-client-1.4.33.tgz",
331
-      "integrity": "sha512-m4LnxkljsI9fMsjwpW5QhRpMixo2BeeLpFmg0AE+sS4H1pzAd/cs/ftTiL60FLZgfFa8PFRPx5KsHu8O0bADKQ=="
338
+      "version": "3.0.0",
339
+      "resolved": "https://registry.npmjs.org/@types/socket.io-client/-/socket.io-client-3.0.0.tgz",
340
+      "integrity": "sha512-s+IPvFoEIjKA3RdJz/Z2dGR4gLgysKi8owcnrVwNjgvc01Lk68LJDDsG2GRqegFITcxmvCMYM7bhMpwEMlHmDg==",
341
+      "requires": {
342
+        "socket.io-client": "*"
343
+      }
332 344
     },
333 345
     "@webassemblyjs/ast": {
334 346
       "version": "1.11.1",
@@ -509,11 +521,6 @@
509 521
       "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==",
510 522
       "dev": true
511 523
     },
512
-    "after": {
513
-      "version": "0.8.2",
514
-      "resolved": "https://registry.npmjs.org/after/-/after-0.8.2.tgz",
515
-      "integrity": "sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8="
516
-    },
517 524
     "aggregate-error": {
518 525
       "version": "3.0.1",
519 526
       "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz",
@@ -617,11 +624,6 @@
617 624
       "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=",
618 625
       "dev": true
619 626
     },
620
-    "arraybuffer.slice": {
621
-      "version": "0.0.7",
622
-      "resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz",
623
-      "integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog=="
624
-    },
625 627
     "arrify": {
626 628
       "version": "1.0.1",
627 629
       "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz",
@@ -639,11 +641,6 @@
639 641
       "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=",
640 642
       "dev": true
641 643
     },
642
-    "async-limiter": {
643
-      "version": "1.0.1",
644
-      "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.1.tgz",
645
-      "integrity": "sha512-csOlWGAcRFJaI6m+F2WKdnMKr4HhdhFVBk0H/QbJFMCr+uO2kwohwXQPxw/9OCxp05r5ghVBFSyioixx3gfkNQ=="
646
-    },
647 644
     "atob": {
648 645
       "version": "2.1.2",
649 646
       "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz",
@@ -659,11 +656,6 @@
659 656
         "underscore": ">=1.8.3"
660 657
       }
661 658
     },
662
-    "backo2": {
663
-      "version": "1.0.2",
664
-      "resolved": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz",
665
-      "integrity": "sha1-MasayLEpNjRj41s+u2n038+6eUc="
666
-    },
667 659
     "balanced-match": {
668 660
       "version": "1.0.0",
669 661
       "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
@@ -725,35 +717,17 @@
725 717
         }
726 718
       }
727 719
     },
728
-    "base64-arraybuffer": {
729
-      "version": "0.1.5",
730
-      "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz",
731
-      "integrity": "sha1-c5JncZI7Whl0etZmqlzUv5xunOg="
732
-    },
733 720
     "base64id": {
734 721
       "version": "2.0.0",
735 722
       "resolved": "https://registry.npmjs.org/base64id/-/base64id-2.0.0.tgz",
736 723
       "integrity": "sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog=="
737 724
     },
738
-    "better-assert": {
739
-      "version": "1.0.2",
740
-      "resolved": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz",
741
-      "integrity": "sha1-QIZrnhueC1W0gYlDEeaPr/rrxSI=",
742
-      "requires": {
743
-        "callsite": "1.0.0"
744
-      }
745
-    },
746 725
     "big.js": {
747 726
       "version": "5.2.2",
748 727
       "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz",
749 728
       "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==",
750 729
       "dev": true
751 730
     },
752
-    "blob": {
753
-      "version": "0.0.5",
754
-      "resolved": "https://registry.npmjs.org/blob/-/blob-0.0.5.tgz",
755
-      "integrity": "sha512-gaqbzQPqOoamawKg0LGVd7SzLgXS+JH61oWprSLH+P+abTczqJbhTR8CmJ2u9/bUYNmHTGJx/UEmn6doAvvuig=="
756
-    },
757 731
     "body-parser": {
758 732
       "version": "1.19.0",
759 733
       "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz",
@@ -905,11 +879,6 @@
905 879
         }
906 880
       }
907 881
     },
908
-    "callsite": {
909
-      "version": "1.0.0",
910
-      "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz",
911
-      "integrity": "sha1-KAOY5dZkvXQDi28JBRU+borxvCA="
912
-    },
913 882
     "camelcase": {
914 883
       "version": "5.3.1",
915 884
       "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
@@ -1081,20 +1050,11 @@
1081 1050
       "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=",
1082 1051
       "dev": true
1083 1052
     },
1084
-    "component-bind": {
1085
-      "version": "1.0.0",
1086
-      "resolved": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz",
1087
-      "integrity": "sha1-AMYIq33Nk4l8AAllGx06jh5zu9E="
1088
-    },
1089 1053
     "component-emitter": {
1090 1054
       "version": "1.3.0",
1091 1055
       "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz",
1092
-      "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg=="
1093
-    },
1094
-    "component-inherit": {
1095
-      "version": "0.0.3",
1096
-      "resolved": "https://registry.npmjs.org/component-inherit/-/component-inherit-0.0.3.tgz",
1097
-      "integrity": "sha1-ZF/ErfWLcrZJ1crmUTVhnbJv8UM="
1056
+      "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==",
1057
+      "dev": true
1098 1058
     },
1099 1059
     "concat-map": {
1100 1060
       "version": "0.0.1",
@@ -1127,9 +1087,9 @@
1127 1087
       }
1128 1088
     },
1129 1089
     "cookie": {
1130
-      "version": "0.3.1",
1131
-      "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz",
1132
-      "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s="
1090
+      "version": "0.4.2",
1091
+      "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz",
1092
+      "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA=="
1133 1093
     },
1134 1094
     "cookie-signature": {
1135 1095
       "version": "1.0.6",
@@ -1149,6 +1109,15 @@
1149 1109
       "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
1150 1110
       "dev": true
1151 1111
     },
1112
+    "cors": {
1113
+      "version": "2.8.5",
1114
+      "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
1115
+      "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
1116
+      "requires": {
1117
+        "object-assign": "^4",
1118
+        "vary": "^1"
1119
+      }
1120
+    },
1152 1121
     "cross-spawn": {
1153 1122
       "version": "6.0.5",
1154 1123
       "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
@@ -1322,75 +1291,73 @@
1322 1291
       }
1323 1292
     },
1324 1293
     "engine.io": {
1325
-      "version": "3.4.2",
1326
-      "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-3.4.2.tgz",
1327
-      "integrity": "sha512-b4Q85dFkGw+TqgytGPrGgACRUhsdKc9S9ErRAXpPGy/CXKs4tYoHDkvIRdsseAF7NjfVwjRFIn6KTnbw7LwJZg==",
1294
+      "version": "6.2.1",
1295
+      "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.2.1.tgz",
1296
+      "integrity": "sha512-ECceEFcAaNRybd3lsGQKas3ZlMVjN3cyWwMP25D2i0zWfyiytVbTpRPa34qrr+FHddtpBVOmq4H/DCv1O0lZRA==",
1328 1297
       "requires": {
1298
+        "@types/cookie": "^0.4.1",
1299
+        "@types/cors": "^2.8.12",
1300
+        "@types/node": ">=10.0.0",
1329 1301
         "accepts": "~1.3.4",
1330 1302
         "base64id": "2.0.0",
1331
-        "cookie": "0.3.1",
1332
-        "debug": "~4.1.0",
1333
-        "engine.io-parser": "~2.2.0",
1334
-        "ws": "^7.1.2"
1303
+        "cookie": "~0.4.1",
1304
+        "cors": "~2.8.5",
1305
+        "debug": "~4.3.1",
1306
+        "engine.io-parser": "~5.0.3",
1307
+        "ws": "~8.2.3"
1335 1308
       },
1336 1309
       "dependencies": {
1337 1310
         "debug": {
1338
-          "version": "4.1.1",
1339
-          "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
1340
-          "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
1311
+          "version": "4.3.4",
1312
+          "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
1313
+          "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
1341 1314
           "requires": {
1342
-            "ms": "^2.1.1"
1315
+            "ms": "2.1.2"
1343 1316
           }
1317
+        },
1318
+        "engine.io-parser": {
1319
+          "version": "5.0.5",
1320
+          "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.0.5.tgz",
1321
+          "integrity": "sha512-mjEyaa4zhuuRhaSLOdjEb57X0XPP9JEsnXI4E+ivhwT0GgzUogARx4MqoY1jQyB+4Bkz3BUOmzL7t9RMKmlG3g=="
1322
+        },
1323
+        "ms": {
1324
+          "version": "2.1.2",
1325
+          "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
1326
+          "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
1344 1327
         }
1345 1328
       }
1346 1329
     },
1347 1330
     "engine.io-client": {
1348
-      "version": "3.4.3",
1349
-      "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.4.3.tgz",
1350
-      "integrity": "sha512-0NGY+9hioejTEJCaSJZfWZLk4FPI9dN+1H1C4+wj2iuFba47UgZbJzfWs4aNFajnX/qAaYKbe2lLTfEEWzCmcw==",
1351
-      "requires": {
1352
-        "component-emitter": "~1.3.0",
1353
-        "component-inherit": "0.0.3",
1354
-        "debug": "~4.1.0",
1355
-        "engine.io-parser": "~2.2.0",
1356
-        "has-cors": "1.1.0",
1357
-        "indexof": "0.0.1",
1358
-        "parseqs": "0.0.5",
1359
-        "parseuri": "0.0.5",
1360
-        "ws": "~6.1.0",
1361
-        "xmlhttprequest-ssl": "~1.5.4",
1362
-        "yeast": "0.1.2"
1331
+      "version": "6.2.3",
1332
+      "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-6.2.3.tgz",
1333
+      "integrity": "sha512-aXPtgF1JS3RuuKcpSrBtimSjYvrbhKW9froICH4s0F3XQWLxsKNxqzG39nnvQZQnva4CMvUK63T7shevxRyYHw==",
1334
+      "requires": {
1335
+        "@socket.io/component-emitter": "~3.1.0",
1336
+        "debug": "~4.3.1",
1337
+        "engine.io-parser": "~5.0.3",
1338
+        "ws": "~8.2.3",
1339
+        "xmlhttprequest-ssl": "~2.0.0"
1363 1340
       },
1364 1341
       "dependencies": {
1365 1342
         "debug": {
1366
-          "version": "4.1.1",
1367
-          "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
1368
-          "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
1343
+          "version": "4.3.4",
1344
+          "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
1345
+          "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
1369 1346
           "requires": {
1370
-            "ms": "^2.1.1"
1347
+            "ms": "2.1.2"
1371 1348
           }
1372 1349
         },
1373
-        "ws": {
1374
-          "version": "6.1.4",
1375
-          "resolved": "https://registry.npmjs.org/ws/-/ws-6.1.4.tgz",
1376
-          "integrity": "sha512-eqZfL+NE/YQc1/ZynhojeV8q+H050oR8AZ2uIev7RU10svA9ZnJUddHcOUZTJLinZ9yEfdA2kSATS2qZK5fhJA==",
1377
-          "requires": {
1378
-            "async-limiter": "~1.0.0"
1379
-          }
1350
+        "ms": {
1351
+          "version": "2.1.2",
1352
+          "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
1353
+          "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
1380 1354
         }
1381 1355
       }
1382 1356
     },
1383 1357
     "engine.io-parser": {
1384
-      "version": "2.2.0",
1385
-      "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-2.2.0.tgz",
1386
-      "integrity": "sha512-6I3qD9iUxotsC5HEMuuGsKA0cXerGz+4uGcXQEkfBidgKf0amsjrrtwcbwK/nzpZBxclXlV7gGl9dgWvu4LF6w==",
1387
-      "requires": {
1388
-        "after": "0.8.2",
1389
-        "arraybuffer.slice": "~0.0.7",
1390
-        "base64-arraybuffer": "0.1.5",
1391
-        "blob": "0.0.5",
1392
-        "has-binary2": "~1.0.2"
1393
-      }
1358
+      "version": "5.0.5",
1359
+      "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-5.0.5.tgz",
1360
+      "integrity": "sha512-mjEyaa4zhuuRhaSLOdjEb57X0XPP9JEsnXI4E+ivhwT0GgzUogARx4MqoY1jQyB+4Bkz3BUOmzL7t9RMKmlG3g=="
1394 1361
     },
1395 1362
     "enhanced-resolve": {
1396 1363
       "version": "4.1.1",
@@ -2090,26 +2057,6 @@
2090 2057
         "function-bind": "^1.1.1"
2091 2058
       }
2092 2059
     },
2093
-    "has-binary2": {
2094
-      "version": "1.0.3",
2095
-      "resolved": "https://registry.npmjs.org/has-binary2/-/has-binary2-1.0.3.tgz",
2096
-      "integrity": "sha512-G1LWKhDSvhGeAQ8mPVQlqNcOB2sJdwATtZKl2pDKKHfpf/rYj24lkinxf69blJbnsvtqqNU+L3SL50vzZhXOnw==",
2097
-      "requires": {
2098
-        "isarray": "2.0.1"
2099
-      },
2100
-      "dependencies": {
2101
-        "isarray": {
2102
-          "version": "2.0.1",
2103
-          "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz",
2104
-          "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4="
2105
-        }
2106
-      }
2107
-    },
2108
-    "has-cors": {
2109
-      "version": "1.1.0",
2110
-      "resolved": "https://registry.npmjs.org/has-cors/-/has-cors-1.1.0.tgz",
2111
-      "integrity": "sha1-XkdHk/fqmEPRu5nCPu9J/xJv/zk="
2112
-    },
2113 2060
     "has-flag": {
2114 2061
       "version": "3.0.0",
2115 2062
       "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
@@ -2262,11 +2209,6 @@
2262 2209
       "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",
2263 2210
       "dev": true
2264 2211
     },
2265
-    "indexof": {
2266
-      "version": "0.0.1",
2267
-      "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz",
2268
-      "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10="
2269
-    },
2270 2212
     "inflight": {
2271 2213
       "version": "1.0.6",
2272 2214
       "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
@@ -3074,7 +3016,8 @@
3074 3016
     "ms": {
3075 3017
       "version": "2.1.1",
3076 3018
       "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
3077
-      "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
3019
+      "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==",
3020
+      "dev": true
3078 3021
     },
3079 3022
     "nanomatch": {
3080 3023
       "version": "1.2.13",
@@ -3402,10 +3345,10 @@
3402 3345
         }
3403 3346
       }
3404 3347
     },
3405
-    "object-component": {
3406
-      "version": "0.0.3",
3407
-      "resolved": "https://registry.npmjs.org/object-component/-/object-component-0.0.3.tgz",
3408
-      "integrity": "sha1-8MaapQ78lbhmwYb0AKM3acsvEpE="
3348
+    "object-assign": {
3349
+      "version": "4.1.1",
3350
+      "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
3351
+      "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="
3409 3352
     },
3410 3353
     "object-copy": {
3411 3354
       "version": "0.1.0",
@@ -3594,22 +3537,6 @@
3594 3537
       "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=",
3595 3538
       "dev": true
3596 3539
     },
3597
-    "parseqs": {
3598
-      "version": "0.0.5",
3599
-      "resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.5.tgz",
3600
-      "integrity": "sha1-1SCKNzjkZ2bikbouoXNoSSGouJ0=",
3601
-      "requires": {
3602
-        "better-assert": "~1.0.0"
3603
-      }
3604
-    },
3605
-    "parseuri": {
3606
-      "version": "0.0.5",
3607
-      "resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.5.tgz",
3608
-      "integrity": "sha1-gCBKUNTbt3m/3G6+J3jZDkvOMgo=",
3609
-      "requires": {
3610
-        "better-assert": "~1.0.0"
3611
-      }
3612
-    },
3613 3540
     "parseurl": {
3614 3541
       "version": "1.3.3",
3615 3542
       "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
@@ -4185,126 +4112,85 @@
4185 4112
       }
4186 4113
     },
4187 4114
     "socket.io": {
4188
-      "version": "2.3.0",
4189
-      "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-2.3.0.tgz",
4190
-      "integrity": "sha512-2A892lrj0GcgR/9Qk81EaY2gYhCBxurV0PfmmESO6p27QPrUK1J3zdns+5QPqvUYK2q657nSj0guoIil9+7eFg==",
4191
-      "requires": {
4192
-        "debug": "~4.1.0",
4193
-        "engine.io": "~3.4.0",
4194
-        "has-binary2": "~1.0.2",
4195
-        "socket.io-adapter": "~1.1.0",
4196
-        "socket.io-client": "2.3.0",
4197
-        "socket.io-parser": "~3.4.0"
4115
+      "version": "4.5.4",
4116
+      "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-4.5.4.tgz",
4117
+      "integrity": "sha512-m3GC94iK9MfIEeIBfbhJs5BqFibMtkRk8ZpKwG2QwxV0m/eEhPIV4ara6XCF1LWNAus7z58RodiZlAH71U3EhQ==",
4118
+      "requires": {
4119
+        "accepts": "~1.3.4",
4120
+        "base64id": "~2.0.0",
4121
+        "debug": "~4.3.2",
4122
+        "engine.io": "~6.2.1",
4123
+        "socket.io-adapter": "~2.4.0",
4124
+        "socket.io-parser": "~4.2.1"
4198 4125
       },
4199 4126
       "dependencies": {
4200 4127
         "debug": {
4201
-          "version": "4.1.1",
4202
-          "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
4203
-          "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
4128
+          "version": "4.3.4",
4129
+          "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
4130
+          "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
4204 4131
           "requires": {
4205
-            "ms": "^2.1.1"
4132
+            "ms": "2.1.2"
4206 4133
           }
4134
+        },
4135
+        "ms": {
4136
+          "version": "2.1.2",
4137
+          "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
4138
+          "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
4207 4139
         }
4208 4140
       }
4209 4141
     },
4210 4142
     "socket.io-adapter": {
4211
-      "version": "1.1.2",
4212
-      "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-1.1.2.tgz",
4213
-      "integrity": "sha512-WzZRUj1kUjrTIrUKpZLEzFZ1OLj5FwLlAFQs9kuZJzJi5DKdU7FsWc36SNmA8iDOtwBQyT8FkrriRM8vXLYz8g=="
4143
+      "version": "2.4.0",
4144
+      "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-2.4.0.tgz",
4145
+      "integrity": "sha512-W4N+o69rkMEGVuk2D/cvca3uYsvGlMwsySWV447y99gUPghxq42BxqLNMndb+a1mm/5/7NeXVQS7RLa2XyXvYg=="
4214 4146
     },
4215 4147
     "socket.io-client": {
4216
-      "version": "2.3.0",
4217
-      "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-2.3.0.tgz",
4218
-      "integrity": "sha512-cEQQf24gET3rfhxZ2jJ5xzAOo/xhZwK+mOqtGRg5IowZsMgwvHwnf/mCRapAAkadhM26y+iydgwsXGObBB5ZdA==",
4219
-      "requires": {
4220
-        "backo2": "1.0.2",
4221
-        "base64-arraybuffer": "0.1.5",
4222
-        "component-bind": "1.0.0",
4223
-        "component-emitter": "1.2.1",
4224
-        "debug": "~4.1.0",
4225
-        "engine.io-client": "~3.4.0",
4226
-        "has-binary2": "~1.0.2",
4227
-        "has-cors": "1.1.0",
4228
-        "indexof": "0.0.1",
4229
-        "object-component": "0.0.3",
4230
-        "parseqs": "0.0.5",
4231
-        "parseuri": "0.0.5",
4232
-        "socket.io-parser": "~3.3.0",
4233
-        "to-array": "0.1.4"
4148
+      "version": "4.5.4",
4149
+      "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-4.5.4.tgz",
4150
+      "integrity": "sha512-ZpKteoA06RzkD32IbqILZ+Cnst4xewU7ZYK12aS1mzHftFFjpoMz69IuhP/nL25pJfao/amoPI527KnuhFm01g==",
4151
+      "requires": {
4152
+        "@socket.io/component-emitter": "~3.1.0",
4153
+        "debug": "~4.3.2",
4154
+        "engine.io-client": "~6.2.3",
4155
+        "socket.io-parser": "~4.2.1"
4234 4156
       },
4235 4157
       "dependencies": {
4236
-        "component-emitter": {
4237
-          "version": "1.2.1",
4238
-          "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz",
4239
-          "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY="
4240
-        },
4241 4158
         "debug": {
4242
-          "version": "4.1.1",
4243
-          "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
4244
-          "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
4159
+          "version": "4.3.4",
4160
+          "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
4161
+          "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
4245 4162
           "requires": {
4246
-            "ms": "^2.1.1"
4163
+            "ms": "2.1.2"
4247 4164
           }
4248 4165
         },
4249
-        "isarray": {
4250
-          "version": "2.0.1",
4251
-          "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz",
4252
-          "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4="
4253
-        },
4254
-        "socket.io-parser": {
4255
-          "version": "3.3.0",
4256
-          "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.3.0.tgz",
4257
-          "integrity": "sha512-hczmV6bDgdaEbVqhAeVMM/jfUfzuEZHsQg6eOmLgJht6G3mPKMxYm75w2+qhAQZ+4X+1+ATZ+QFKeOZD5riHng==",
4258
-          "requires": {
4259
-            "component-emitter": "1.2.1",
4260
-            "debug": "~3.1.0",
4261
-            "isarray": "2.0.1"
4262
-          },
4263
-          "dependencies": {
4264
-            "debug": {
4265
-              "version": "3.1.0",
4266
-              "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
4267
-              "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
4268
-              "requires": {
4269
-                "ms": "2.0.0"
4270
-              }
4271
-            },
4272
-            "ms": {
4273
-              "version": "2.0.0",
4274
-              "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
4275
-              "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
4276
-            }
4277
-          }
4166
+        "ms": {
4167
+          "version": "2.1.2",
4168
+          "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
4169
+          "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
4278 4170
         }
4279 4171
       }
4280 4172
     },
4281 4173
     "socket.io-parser": {
4282
-      "version": "3.4.1",
4283
-      "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.4.1.tgz",
4284
-      "integrity": "sha512-11hMgzL+WCLWf1uFtHSNvliI++tcRUWdoeYuwIl+Axvwy9z2gQM+7nJyN3STj1tLj5JyIUH8/gpDGxzAlDdi0A==",
4174
+      "version": "4.2.1",
4175
+      "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-4.2.1.tgz",
4176
+      "integrity": "sha512-V4GrkLy+HeF1F/en3SpUaM+7XxYXpuMUWLGde1kSSh5nQMN4hLrbPIkD+otwh6q9R6NOQBN4AMaOZ2zVjui82g==",
4285 4177
       "requires": {
4286
-        "component-emitter": "1.2.1",
4287
-        "debug": "~4.1.0",
4288
-        "isarray": "2.0.1"
4178
+        "@socket.io/component-emitter": "~3.1.0",
4179
+        "debug": "~4.3.1"
4289 4180
       },
4290 4181
       "dependencies": {
4291
-        "component-emitter": {
4292
-          "version": "1.2.1",
4293
-          "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz",
4294
-          "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY="
4295
-        },
4296 4182
         "debug": {
4297
-          "version": "4.1.1",
4298
-          "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
4299
-          "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
4183
+          "version": "4.3.4",
4184
+          "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
4185
+          "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
4300 4186
           "requires": {
4301
-            "ms": "^2.1.1"
4187
+            "ms": "2.1.2"
4302 4188
           }
4303 4189
         },
4304
-        "isarray": {
4305
-          "version": "2.0.1",
4306
-          "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz",
4307
-          "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4="
4190
+        "ms": {
4191
+          "version": "2.1.2",
4192
+          "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
4193
+          "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
4308 4194
         }
4309 4195
       }
4310 4196
     },
@@ -4621,11 +4507,6 @@
4621 4507
         }
4622 4508
       }
4623 4509
     },
4624
-    "to-array": {
4625
-      "version": "0.1.4",
4626
-      "resolved": "https://registry.npmjs.org/to-array/-/to-array-0.1.4.tgz",
4627
-      "integrity": "sha1-F+bBH3PdTz10zaek/zI46a2b+JA="
4628
-    },
4629 4510
     "to-fast-properties": {
4630 4511
       "version": "2.0.0",
4631 4512
       "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
@@ -4959,8 +4840,7 @@
4959 4840
     "vary": {
4960 4841
       "version": "1.1.2",
4961 4842
       "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
4962
-      "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=",
4963
-      "dev": true
4843
+      "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw="
4964 4844
     },
4965 4845
     "watchpack": {
4966 4846
       "version": "2.3.1",
@@ -5233,14 +5113,14 @@
5233 5113
       }
5234 5114
     },
5235 5115
     "ws": {
5236
-      "version": "7.3.0",
5237
-      "resolved": "https://registry.npmjs.org/ws/-/ws-7.3.0.tgz",
5238
-      "integrity": "sha512-iFtXzngZVXPGgpTlP1rBqsUK82p9tKqsWRPg5L56egiljujJT3vGAYnHANvFxBieXrTFavhzhxW52jnaWV+w2w=="
5116
+      "version": "8.2.3",
5117
+      "resolved": "https://registry.npmjs.org/ws/-/ws-8.2.3.tgz",
5118
+      "integrity": "sha512-wBuoj1BDpC6ZQ1B7DWQBYVLphPWkm8i9Y0/3YdHjHKHiohOJ1ws+3OccDWtH+PoC9DZD5WOTrJvNbWvjS6JWaA=="
5239 5119
     },
5240 5120
     "xmlhttprequest-ssl": {
5241
-      "version": "1.5.5",
5242
-      "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz",
5243
-      "integrity": "sha1-wodrBhaKrcQOV9l+gRkayPQ5iz4="
5121
+      "version": "2.0.0",
5122
+      "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-2.0.0.tgz",
5123
+      "integrity": "sha512-QKxVRxiRACQcVuQEYFsI1hhkrMlrXHPegbbd1yn9UHOmRxY+si12nQYzri3vbzt8VdTTRviqcKxcyllFas5z2A=="
5244 5124
     },
5245 5125
     "y18n": {
5246 5126
       "version": "4.0.0",
@@ -5315,11 +5195,6 @@
5315 5195
         "yargs": "^13.3.0"
5316 5196
       }
5317 5197
     },
5318
-    "yeast": {
5319
-      "version": "0.1.2",
5320
-      "resolved": "https://registry.npmjs.org/yeast/-/yeast-0.1.2.tgz",
5321
-      "integrity": "sha1-AI4G2AlDIMNy28L47XagymyKxBk="
5322
-    },
5323 5198
     "yn": {
5324 5199
       "version": "2.0.0",
5325 5200
       "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz",

+ 4
- 4
package.json Wyświetl plik

@@ -53,13 +53,13 @@
53 53
   },
54 54
   "dependencies": {
55 55
     "@types/chai": "^4.2.21",
56
-    "@types/socket.io": "^2.1.8",
57
-    "@types/socket.io-client": "^1.4.33",
56
+    "@types/socket.io": "^3.0.2",
57
+    "@types/socket.io-client": "^3.0.0",
58 58
     "chai": "^4.3.4",
59 59
     "chai-as-promised": "^7.1.1",
60 60
     "http": "0.0.0",
61
-    "socket.io": "^2.3.0",
62
-    "socket.io-client": "^2.3.0",
61
+    "socket.io": "^4.5.4",
62
+    "socket.io-client": "^4.5.4",
63 63
     "socketio-wildcard": "^2.0.0",
64 64
     "uuid": "^3.3.3"
65 65
   },

+ 3
- 2
src/Backend.ts Wyświetl plik

@@ -6,6 +6,7 @@ import * as T from './Types';
6 6
 import * as U from './Utils';
7 7
 import * as I from './Interfaces';
8 8
 import { BAD_CONFIG_PARAM, DESTROY_PREFIX, RPC_NO_NAME, UNKNOWN_RPC_IDENTIFIER, UNKNOWN_RPC_SERVER } from './Strings';
9
+import { ServerOptions } from 'socket.io';
9 10
 
10 11
 export class RPCServer<
11 12
     InterfaceT extends T.RPCInterface = T.RPCInterface,
@@ -80,13 +81,13 @@ export class RPCServer<
80 81
         }
81 82
     }
82 83
 
83
-    public attach = (httpServer = new http.Server(), options?: SocketIO.ServerOptions): RPCServer<InterfaceT> => {
84
+    public attach = (httpServer = new http.Server(), options?: T.SomeOf<ServerOptions>): RPCServer<InterfaceT> => {
84 85
         this.pio.attach(httpServer, options)
85 86
         this.attached = true
86 87
         return this
87 88
     }
88 89
 
89
-    public listen(port: number, options?: SocketIO.ServerOptions): RPCServer<InterfaceT> {
90
+    public listen(port: number, options?: T.SomeOf<ServerOptions>): RPCServer<InterfaceT> {
90 91
         if (!this.attached) {
91 92
             this.attach(undefined, options)
92 93
         } else {

+ 1
- 1
src/PromiseIO/Client.ts Wyświetl plik

@@ -22,7 +22,7 @@ export class PromiseIOClient {
22 22
             }
23 23
 
24 24
             const address = `${host}:${port}`
25
-            const socket = socketio(`${options.protocol?options.protocol:'http'}://${address}`, options)
25
+            const socket = socketio.io(`${options.protocol?options.protocol:'http'}://${address}`, options)
26 26
 
27 27
             socket.on('connect_error', e => {
28 28
                 sock.emit('error', e)

+ 4
- 6
src/PromiseIO/Server.ts Wyświetl plik

@@ -5,10 +5,8 @@ import * as T from '../Types'
5 5
 import socketio = require('socket.io')
6 6
 import middleware = require('socketio-wildcard');
7 7
 
8
-const defaultConfig : socketio.ServerOptions = {
9
-    cookie: false,
10
-    path: '/socket.io',
11
-}
8
+
9
+const defaultConfig : T.SomeOf<socketio.ServerOptions> = {}
12 10
 
13 11
 export class PromiseIO {
14 12
     io?: Server
@@ -18,12 +16,12 @@ export class PromiseIO {
18 16
         connect: []
19 17
     }
20 18
 
21
-    attach(httpServer: httpServer, options: socketio.ServerOptions = defaultConfig) {
19
+    attach(httpServer: httpServer, options: T.SomeOf<socketio.ServerOptions> = defaultConfig) {
22 20
         if(options.path && !options.path.startsWith('/')){
23 21
             options.path = "/"+options.path
24 22
         }
25 23
         this.httpServer = httpServer
26
-        this.io = socketio(httpServer, options)
24
+        this.io = new Server(httpServer, options)
27 25
         this.io!.use(middleware())
28 26
         this.io!.on('connection', (clientSocket: Socket) => {
29 27
 

+ 7
- 1
src/Types.ts Wyświetl plik

@@ -1,5 +1,6 @@
1 1
 import * as I from "./Interfaces";
2 2
 import { RPCSocket } from "./Frontend";
3
+import { ManagerOptions, SocketOptions } from 'socket.io-client'
3 4
 
4 5
 export type PioBindListener = (...args: any) => void
5 6
 export type PioHookListener = GenericFunction
@@ -36,10 +37,15 @@ export type FrontEndHandlerType = {
36 37
     'error': (e: any) => void
37 38
     'close': () => void
38 39
 }
39
-export type ClientConfig = SocketIOClient.ConnectOpts & {
40
+export type ClientConfig = Partial<ManagerOptions & SocketOptions> & {
40 41
     protocol?: 'http' | 'https',
41 42
     callTimeoutMs?: number
42 43
 }
44
+
45
+export type SomeOf<T> = {
46
+    [key in keyof T]?: T[key]
47
+}
48
+
43 49
 export type ExporterArray<InterfaceT extends RPCInterface = RPCInterface> = I.RPCExporter<RPCInterface<InterfaceT>, keyof InterfaceT>[]
44 50
 
45 51
 export type ConnectedSocket<T extends RPCInterface = RPCInterface> = RPCSocket & AsyncIfc<T>

Ładowanie…
Anuluj
Zapisz