uws-react-native 0.0.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +84 -0
  3. package/UwsReactNative.podspec +71 -0
  4. package/android/build.gradle.kts +138 -0
  5. package/android/src/main/AndroidManifest.xml +2 -0
  6. package/android/src/main/java/id/sufeni/oss/uwsreactnative/UwsReactNativePackage.kt +18 -0
  7. package/apple/OnLoad.mm +17 -0
  8. package/cpp/CMakeLists.txt +154 -0
  9. package/cpp/UwsReactNativeModule.cpp +191 -0
  10. package/cpp/UwsReactNativeModule.h +30 -0
  11. package/cpp/app/AppHost.h +37 -0
  12. package/cpp/app/AppRunner.h +88 -0
  13. package/cpp/app/CMakeLists.txt +39 -0
  14. package/cpp/app/HttpRequestObject.h +173 -0
  15. package/cpp/app/HttpResponseObject.h +623 -0
  16. package/cpp/app/RecognizedString.h +71 -0
  17. package/cpp/app/TemplatedAppObject.h +472 -0
  18. package/cpp/bridging/ArrayBuffer.h +150 -0
  19. package/cpp/bridging/CMakeLists.txt +34 -0
  20. package/cpp/jsi/Buffer.h +91 -0
  21. package/cpp/jsi/CMakeLists.txt +34 -0
  22. package/cpp/uSockets/bsd.c +767 -0
  23. package/cpp/uSockets/context.c +524 -0
  24. package/cpp/uSockets/crypto/openssl.c +858 -0
  25. package/cpp/uSockets/crypto/sni_tree.cpp +218 -0
  26. package/cpp/uSockets/eventing/asio.cpp +475 -0
  27. package/cpp/uSockets/eventing/epoll_kqueue.c +458 -0
  28. package/cpp/uSockets/eventing/gcd.c +278 -0
  29. package/cpp/uSockets/eventing/libuv.c +305 -0
  30. package/cpp/uSockets/internal/eventing/asio.h +45 -0
  31. package/cpp/uSockets/internal/eventing/epoll_kqueue.h +67 -0
  32. package/cpp/uSockets/internal/eventing/gcd.h +40 -0
  33. package/cpp/uSockets/internal/eventing/libuv.h +45 -0
  34. package/cpp/uSockets/internal/internal.h +224 -0
  35. package/cpp/uSockets/internal/loop_data.h +38 -0
  36. package/cpp/uSockets/internal/networking/bsd.h +109 -0
  37. package/cpp/uSockets/io_uring/internal.h +98 -0
  38. package/cpp/uSockets/io_uring/io_context.c +302 -0
  39. package/cpp/uSockets/io_uring/io_loop.c +422 -0
  40. package/cpp/uSockets/io_uring/io_socket.c +139 -0
  41. package/cpp/uSockets/libusockets.h +350 -0
  42. package/cpp/uSockets/loop.c +396 -0
  43. package/cpp/uSockets/quic.c +1071 -0
  44. package/cpp/uSockets/quic.h +68 -0
  45. package/cpp/uSockets/socket.c +231 -0
  46. package/cpp/uSockets/udp.c +151 -0
  47. package/cpp/uWebSockets/uWebSockets/App.h +676 -0
  48. package/cpp/uWebSockets/uWebSockets/AsyncSocket.h +376 -0
  49. package/cpp/uWebSockets/uWebSockets/AsyncSocketData.h +94 -0
  50. package/cpp/uWebSockets/uWebSockets/BloomFilter.h +83 -0
  51. package/cpp/uWebSockets/uWebSockets/CachingApp.h +115 -0
  52. package/cpp/uWebSockets/uWebSockets/ChunkedEncoding.h +237 -0
  53. package/cpp/uWebSockets/uWebSockets/ClientApp.h +36 -0
  54. package/cpp/uWebSockets/uWebSockets/Http3App.h +140 -0
  55. package/cpp/uWebSockets/uWebSockets/Http3Context.h +157 -0
  56. package/cpp/uWebSockets/uWebSockets/Http3ContextData.h +21 -0
  57. package/cpp/uWebSockets/uWebSockets/Http3Request.h +22 -0
  58. package/cpp/uWebSockets/uWebSockets/Http3Response.h +120 -0
  59. package/cpp/uWebSockets/uWebSockets/Http3ResponseData.h +25 -0
  60. package/cpp/uWebSockets/uWebSockets/HttpContext.h +521 -0
  61. package/cpp/uWebSockets/uWebSockets/HttpContextData.h +60 -0
  62. package/cpp/uWebSockets/uWebSockets/HttpErrors.h +53 -0
  63. package/cpp/uWebSockets/uWebSockets/HttpParser.h +747 -0
  64. package/cpp/uWebSockets/uWebSockets/HttpResponse.h +605 -0
  65. package/cpp/uWebSockets/uWebSockets/HttpResponseData.h +123 -0
  66. package/cpp/uWebSockets/uWebSockets/HttpRouter.h +384 -0
  67. package/cpp/uWebSockets/uWebSockets/LocalCluster.h +64 -0
  68. package/cpp/uWebSockets/uWebSockets/Loop.h +238 -0
  69. package/cpp/uWebSockets/uWebSockets/LoopData.h +113 -0
  70. package/cpp/uWebSockets/uWebSockets/MessageParser.h +64 -0
  71. package/cpp/uWebSockets/uWebSockets/MoveOnlyFunction.h +389 -0
  72. package/cpp/uWebSockets/uWebSockets/Multipart.h +231 -0
  73. package/cpp/uWebSockets/uWebSockets/PerMessageDeflate.h +303 -0
  74. package/cpp/uWebSockets/uWebSockets/ProxyParser.h +187 -0
  75. package/cpp/uWebSockets/uWebSockets/QueryParser.h +120 -0
  76. package/cpp/uWebSockets/uWebSockets/TopicTree.h +364 -0
  77. package/cpp/uWebSockets/uWebSockets/Utilities.h +66 -0
  78. package/cpp/uWebSockets/uWebSockets/WebSocket.h +407 -0
  79. package/cpp/uWebSockets/uWebSockets/WebSocketContext.h +436 -0
  80. package/cpp/uWebSockets/uWebSockets/WebSocketContextData.h +109 -0
  81. package/cpp/uWebSockets/uWebSockets/WebSocketData.h +86 -0
  82. package/cpp/uWebSockets/uWebSockets/WebSocketExtensions.h +256 -0
  83. package/cpp/uWebSockets/uWebSockets/WebSocketHandshake.h +145 -0
  84. package/cpp/uWebSockets/uWebSockets/WebSocketProtocol.h +525 -0
  85. package/lib/commonjs/_internal/native-modules/NativeReactNativeUws.js +12 -0
  86. package/lib/commonjs/_internal/native-modules/NativeReactNativeUws.js.map +1 -0
  87. package/lib/commonjs/index.js +28 -0
  88. package/lib/commonjs/index.js.map +1 -0
  89. package/lib/commonjs/modules/App.js +17 -0
  90. package/lib/commonjs/modules/App.js.map +1 -0
  91. package/lib/commonjs/modules/CompressOptions.js +103 -0
  92. package/lib/commonjs/modules/CompressOptions.js.map +1 -0
  93. package/lib/commonjs/modules/EnvironmentVariables.js +17 -0
  94. package/lib/commonjs/modules/EnvironmentVariables.js.map +1 -0
  95. package/lib/commonjs/modules/ListenOptions.js +12 -0
  96. package/lib/commonjs/modules/ListenOptions.js.map +1 -0
  97. package/lib/commonjs/modules/SSLApp.js +15 -0
  98. package/lib/commonjs/modules/SSLApp.js.map +1 -0
  99. package/lib/commonjs/modules/getParts.js +28 -0
  100. package/lib/commonjs/modules/getParts.js.map +1 -0
  101. package/lib/commonjs/modules/index.js +61 -0
  102. package/lib/commonjs/modules/index.js.map +1 -0
  103. package/lib/commonjs/modules/us_listen_socket_close.js +21 -0
  104. package/lib/commonjs/modules/us_listen_socket_close.js.map +1 -0
  105. package/lib/commonjs/modules/us_socket_local_port.js +22 -0
  106. package/lib/commonjs/modules/us_socket_local_port.js.map +1 -0
  107. package/lib/commonjs/package.json +1 -0
  108. package/lib/commonjs/types/AppDescriptor.js +2 -0
  109. package/lib/commonjs/types/AppDescriptor.js.map +1 -0
  110. package/lib/commonjs/types/AppOptions.js +2 -0
  111. package/lib/commonjs/types/AppOptions.js.map +1 -0
  112. package/lib/commonjs/types/HttpRequest.js +6 -0
  113. package/lib/commonjs/types/HttpRequest.js.map +1 -0
  114. package/lib/commonjs/types/HttpResponse.js +6 -0
  115. package/lib/commonjs/types/HttpResponse.js.map +1 -0
  116. package/lib/commonjs/types/HttpRouterOptions.js +2 -0
  117. package/lib/commonjs/types/HttpRouterOptions.js.map +1 -0
  118. package/lib/commonjs/types/MultipartField.js +2 -0
  119. package/lib/commonjs/types/MultipartField.js.map +1 -0
  120. package/lib/commonjs/types/RecognizedString.js +2 -0
  121. package/lib/commonjs/types/RecognizedString.js.map +1 -0
  122. package/lib/commonjs/types/TemplatedApp.js +6 -0
  123. package/lib/commonjs/types/TemplatedApp.js.map +1 -0
  124. package/lib/commonjs/types/WebSocket.js +6 -0
  125. package/lib/commonjs/types/WebSocket.js.map +1 -0
  126. package/lib/commonjs/types/WebSocketBehaviour.js +139 -0
  127. package/lib/commonjs/types/WebSocketBehaviour.js.map +1 -0
  128. package/lib/commonjs/types/index.js +2 -0
  129. package/lib/commonjs/types/index.js.map +1 -0
  130. package/lib/commonjs/types/us_listen_socket.js +2 -0
  131. package/lib/commonjs/types/us_listen_socket.js.map +1 -0
  132. package/lib/commonjs/types/us_socket.js +2 -0
  133. package/lib/commonjs/types/us_socket.js.map +1 -0
  134. package/lib/commonjs/types/us_socket_context_t.js +2 -0
  135. package/lib/commonjs/types/us_socket_context_t.js.map +1 -0
  136. package/lib/module/_internal/native-modules/NativeReactNativeUws.js +10 -0
  137. package/lib/module/_internal/native-modules/NativeReactNativeUws.js.map +1 -0
  138. package/lib/module/index.js +5 -0
  139. package/lib/module/index.js.map +1 -0
  140. package/lib/module/modules/App.js +12 -0
  141. package/lib/module/modules/App.js.map +1 -0
  142. package/lib/module/modules/CompressOptions.js +103 -0
  143. package/lib/module/modules/CompressOptions.js.map +1 -0
  144. package/lib/module/modules/EnvironmentVariables.js +13 -0
  145. package/lib/module/modules/EnvironmentVariables.js.map +1 -0
  146. package/lib/module/modules/ListenOptions.js +8 -0
  147. package/lib/module/modules/ListenOptions.js.map +1 -0
  148. package/lib/module/modules/SSLApp.js +15 -0
  149. package/lib/module/modules/SSLApp.js.map +1 -0
  150. package/lib/module/modules/getParts.js +23 -0
  151. package/lib/module/modules/getParts.js.map +1 -0
  152. package/lib/module/modules/index.js +11 -0
  153. package/lib/module/modules/index.js.map +1 -0
  154. package/lib/module/modules/us_listen_socket_close.js +17 -0
  155. package/lib/module/modules/us_listen_socket_close.js.map +1 -0
  156. package/lib/module/modules/us_socket_local_port.js +18 -0
  157. package/lib/module/modules/us_socket_local_port.js.map +1 -0
  158. package/lib/module/package.json +1 -0
  159. package/lib/module/types/AppDescriptor.js +2 -0
  160. package/lib/module/types/AppDescriptor.js.map +1 -0
  161. package/lib/module/types/AppOptions.js +2 -0
  162. package/lib/module/types/AppOptions.js.map +1 -0
  163. package/lib/module/types/HttpRequest.js +4 -0
  164. package/lib/module/types/HttpRequest.js.map +1 -0
  165. package/lib/module/types/HttpResponse.js +4 -0
  166. package/lib/module/types/HttpResponse.js.map +1 -0
  167. package/lib/module/types/HttpRouterOptions.js +2 -0
  168. package/lib/module/types/HttpRouterOptions.js.map +1 -0
  169. package/lib/module/types/MultipartField.js +2 -0
  170. package/lib/module/types/MultipartField.js.map +1 -0
  171. package/lib/module/types/RecognizedString.js +2 -0
  172. package/lib/module/types/RecognizedString.js.map +1 -0
  173. package/lib/module/types/TemplatedApp.js +4 -0
  174. package/lib/module/types/TemplatedApp.js.map +1 -0
  175. package/lib/module/types/WebSocket.js +4 -0
  176. package/lib/module/types/WebSocket.js.map +1 -0
  177. package/lib/module/types/WebSocketBehaviour.js +139 -0
  178. package/lib/module/types/WebSocketBehaviour.js.map +1 -0
  179. package/lib/module/types/index.js +2 -0
  180. package/lib/module/types/index.js.map +1 -0
  181. package/lib/module/types/us_listen_socket.js +2 -0
  182. package/lib/module/types/us_listen_socket.js.map +1 -0
  183. package/lib/module/types/us_socket.js +2 -0
  184. package/lib/module/types/us_socket.js.map +1 -0
  185. package/lib/module/types/us_socket_context_t.js +2 -0
  186. package/lib/module/types/us_socket_context_t.js.map +1 -0
  187. package/lib/typescript/commonjs/_internal/native-modules/NativeReactNativeUws.d.ts +22 -0
  188. package/lib/typescript/commonjs/_internal/native-modules/NativeReactNativeUws.d.ts.map +1 -0
  189. package/lib/typescript/commonjs/index.d.ts +3 -0
  190. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  191. package/lib/typescript/commonjs/modules/App.d.ts +7 -0
  192. package/lib/typescript/commonjs/modules/App.d.ts.map +1 -0
  193. package/lib/typescript/commonjs/modules/CompressOptions.d.ts +1 -0
  194. package/lib/typescript/commonjs/modules/CompressOptions.d.ts.map +1 -0
  195. package/lib/typescript/commonjs/modules/EnvironmentVariables.d.ts +16 -0
  196. package/lib/typescript/commonjs/modules/EnvironmentVariables.d.ts.map +1 -0
  197. package/lib/typescript/commonjs/modules/ListenOptions.d.ts +5 -0
  198. package/lib/typescript/commonjs/modules/ListenOptions.d.ts.map +1 -0
  199. package/lib/typescript/commonjs/modules/SSLApp.d.ts +1 -0
  200. package/lib/typescript/commonjs/modules/SSLApp.d.ts.map +1 -0
  201. package/lib/typescript/commonjs/modules/getParts.d.ts +6 -0
  202. package/lib/typescript/commonjs/modules/getParts.d.ts.map +1 -0
  203. package/lib/typescript/commonjs/modules/index.d.ts +6 -0
  204. package/lib/typescript/commonjs/modules/index.d.ts.map +1 -0
  205. package/lib/typescript/commonjs/modules/us_listen_socket_close.d.ts +5 -0
  206. package/lib/typescript/commonjs/modules/us_listen_socket_close.d.ts.map +1 -0
  207. package/lib/typescript/commonjs/modules/us_socket_local_port.d.ts +5 -0
  208. package/lib/typescript/commonjs/modules/us_socket_local_port.d.ts.map +1 -0
  209. package/lib/typescript/commonjs/package.json +1 -0
  210. package/lib/typescript/commonjs/types/AppDescriptor.d.ts +8 -0
  211. package/lib/typescript/commonjs/types/AppDescriptor.d.ts.map +1 -0
  212. package/lib/typescript/commonjs/types/AppOptions.d.ts +17 -0
  213. package/lib/typescript/commonjs/types/AppOptions.d.ts.map +1 -0
  214. package/lib/typescript/commonjs/types/HttpRequest.d.ts +54 -0
  215. package/lib/typescript/commonjs/types/HttpRequest.d.ts.map +1 -0
  216. package/lib/typescript/commonjs/types/HttpResponse.d.ts +169 -0
  217. package/lib/typescript/commonjs/types/HttpResponse.d.ts.map +1 -0
  218. package/lib/typescript/commonjs/types/HttpRouterOptions.d.ts +24 -0
  219. package/lib/typescript/commonjs/types/HttpRouterOptions.d.ts.map +1 -0
  220. package/lib/typescript/commonjs/types/MultipartField.d.ts +7 -0
  221. package/lib/typescript/commonjs/types/MultipartField.d.ts.map +1 -0
  222. package/lib/typescript/commonjs/types/RecognizedString.d.ts +10 -0
  223. package/lib/typescript/commonjs/types/RecognizedString.d.ts.map +1 -0
  224. package/lib/typescript/commonjs/types/TemplatedApp.d.ts +108 -0
  225. package/lib/typescript/commonjs/types/TemplatedApp.d.ts.map +1 -0
  226. package/lib/typescript/commonjs/types/WebSocket.d.ts +96 -0
  227. package/lib/typescript/commonjs/types/WebSocket.d.ts.map +1 -0
  228. package/lib/typescript/commonjs/types/WebSocketBehaviour.d.ts +1 -0
  229. package/lib/typescript/commonjs/types/WebSocketBehaviour.d.ts.map +1 -0
  230. package/lib/typescript/commonjs/types/index.d.ts +6 -0
  231. package/lib/typescript/commonjs/types/index.d.ts.map +1 -0
  232. package/lib/typescript/commonjs/types/us_listen_socket.d.ts +7 -0
  233. package/lib/typescript/commonjs/types/us_listen_socket.d.ts.map +1 -0
  234. package/lib/typescript/commonjs/types/us_socket.d.ts +7 -0
  235. package/lib/typescript/commonjs/types/us_socket.d.ts.map +1 -0
  236. package/lib/typescript/commonjs/types/us_socket_context_t.d.ts +7 -0
  237. package/lib/typescript/commonjs/types/us_socket_context_t.d.ts.map +1 -0
  238. package/lib/typescript/module/_internal/native-modules/NativeReactNativeUws.d.ts +22 -0
  239. package/lib/typescript/module/_internal/native-modules/NativeReactNativeUws.d.ts.map +1 -0
  240. package/lib/typescript/module/index.d.ts +3 -0
  241. package/lib/typescript/module/index.d.ts.map +1 -0
  242. package/lib/typescript/module/modules/App.d.ts +7 -0
  243. package/lib/typescript/module/modules/App.d.ts.map +1 -0
  244. package/lib/typescript/module/modules/CompressOptions.d.ts +1 -0
  245. package/lib/typescript/module/modules/CompressOptions.d.ts.map +1 -0
  246. package/lib/typescript/module/modules/EnvironmentVariables.d.ts +16 -0
  247. package/lib/typescript/module/modules/EnvironmentVariables.d.ts.map +1 -0
  248. package/lib/typescript/module/modules/ListenOptions.d.ts +5 -0
  249. package/lib/typescript/module/modules/ListenOptions.d.ts.map +1 -0
  250. package/lib/typescript/module/modules/SSLApp.d.ts +1 -0
  251. package/lib/typescript/module/modules/SSLApp.d.ts.map +1 -0
  252. package/lib/typescript/module/modules/getParts.d.ts +6 -0
  253. package/lib/typescript/module/modules/getParts.d.ts.map +1 -0
  254. package/lib/typescript/module/modules/index.d.ts +6 -0
  255. package/lib/typescript/module/modules/index.d.ts.map +1 -0
  256. package/lib/typescript/module/modules/us_listen_socket_close.d.ts +5 -0
  257. package/lib/typescript/module/modules/us_listen_socket_close.d.ts.map +1 -0
  258. package/lib/typescript/module/modules/us_socket_local_port.d.ts +5 -0
  259. package/lib/typescript/module/modules/us_socket_local_port.d.ts.map +1 -0
  260. package/lib/typescript/module/package.json +1 -0
  261. package/lib/typescript/module/types/AppDescriptor.d.ts +8 -0
  262. package/lib/typescript/module/types/AppDescriptor.d.ts.map +1 -0
  263. package/lib/typescript/module/types/AppOptions.d.ts +17 -0
  264. package/lib/typescript/module/types/AppOptions.d.ts.map +1 -0
  265. package/lib/typescript/module/types/HttpRequest.d.ts +54 -0
  266. package/lib/typescript/module/types/HttpRequest.d.ts.map +1 -0
  267. package/lib/typescript/module/types/HttpResponse.d.ts +169 -0
  268. package/lib/typescript/module/types/HttpResponse.d.ts.map +1 -0
  269. package/lib/typescript/module/types/HttpRouterOptions.d.ts +24 -0
  270. package/lib/typescript/module/types/HttpRouterOptions.d.ts.map +1 -0
  271. package/lib/typescript/module/types/MultipartField.d.ts +7 -0
  272. package/lib/typescript/module/types/MultipartField.d.ts.map +1 -0
  273. package/lib/typescript/module/types/RecognizedString.d.ts +10 -0
  274. package/lib/typescript/module/types/RecognizedString.d.ts.map +1 -0
  275. package/lib/typescript/module/types/TemplatedApp.d.ts +108 -0
  276. package/lib/typescript/module/types/TemplatedApp.d.ts.map +1 -0
  277. package/lib/typescript/module/types/WebSocket.d.ts +96 -0
  278. package/lib/typescript/module/types/WebSocket.d.ts.map +1 -0
  279. package/lib/typescript/module/types/WebSocketBehaviour.d.ts +1 -0
  280. package/lib/typescript/module/types/WebSocketBehaviour.d.ts.map +1 -0
  281. package/lib/typescript/module/types/index.d.ts +6 -0
  282. package/lib/typescript/module/types/index.d.ts.map +1 -0
  283. package/lib/typescript/module/types/us_listen_socket.d.ts +7 -0
  284. package/lib/typescript/module/types/us_listen_socket.d.ts.map +1 -0
  285. package/lib/typescript/module/types/us_socket.d.ts +7 -0
  286. package/lib/typescript/module/types/us_socket.d.ts.map +1 -0
  287. package/lib/typescript/module/types/us_socket_context_t.d.ts +7 -0
  288. package/lib/typescript/module/types/us_socket_context_t.d.ts.map +1 -0
  289. package/lib/typescript/tsconfig.tsbuildinfo +1 -0
  290. package/package.json +62 -0
  291. package/src/_internal/native-modules/NativeUwsReactNative.ts +40 -0
  292. package/src/index.ts +2 -0
  293. package/src/modules/App.ts +14 -0
  294. package/src/modules/CompressOptions.ts +101 -0
  295. package/src/modules/EnvironmentVariables.ts +16 -0
  296. package/src/modules/ListenOptions.ts +4 -0
  297. package/src/modules/SSLApp.ts +13 -0
  298. package/src/modules/getParts.ts +29 -0
  299. package/src/modules/index.ts +8 -0
  300. package/src/modules/us_listen_socket_close.ts +15 -0
  301. package/src/modules/us_socket_local_port.ts +16 -0
  302. package/src/types/AppDescriptor.ts +7 -0
  303. package/src/types/AppOptions.ts +22 -0
  304. package/src/types/HttpRequest.ts +74 -0
  305. package/src/types/HttpResponse.ts +309 -0
  306. package/src/types/HttpRouterOptions.ts +24 -0
  307. package/src/types/MultipartField.ts +6 -0
  308. package/src/types/RecognizedString.ts +11 -0
  309. package/src/types/TemplatedApp.ts +285 -0
  310. package/src/types/WebSocket.ts +147 -0
  311. package/src/types/WebSocketBehaviour.ts +137 -0
  312. package/src/types/index.ts +12 -0
  313. package/src/types/us_listen_socket.ts +6 -0
  314. package/src/types/us_socket.ts +6 -0
  315. package/src/types/us_socket_context_t.ts +6 -0
@@ -0,0 +1,96 @@
1
+ import type { RecognizedString } from "./RecognizedString";
2
+ /**
3
+ * A WebSocket connection that is valid from open to close event.
4
+ * Read more about this in the user manual.
5
+ */
6
+ export interface WebSocket {
7
+ /**
8
+ * Sends a message. Returns 1 for success, 2 for dropped due to backpressure limit, and 0 for built up backpressure that will drain over time. You can check backpressure before or after sending by calling getBufferedAmount().
9
+ *
10
+ * Make sure you properly understand the concept of backpressure. Check the backpressure example file.
11
+ */
12
+ send(message: RecognizedString, isBinary?: boolean, compress?: boolean): number;
13
+ /**
14
+ * Returns the bytes buffered in backpressure. This is similar to the bufferedAmount property in the browser counterpart.
15
+ * Check backpressure example.
16
+ */
17
+ getBufferedAmount(): number;
18
+ /**
19
+ * Gracefully closes this WebSocket. Immediately calls the close handler.
20
+ * A WebSocket close message is sent with code and shortMessage.
21
+ */
22
+ end(code?: number, shortMessage?: RecognizedString): void;
23
+ /**
24
+ * Forcefully closes this WebSocket. Immediately calls the close handler.
25
+ * No WebSocket close message is sent.
26
+ */
27
+ close(): void;
28
+ /**
29
+ * Sends a ping control message. Returns sendStatus similar to WebSocket.send (regarding backpressure). This helper function correlates to WebSocket::send(message, uWS::OpCode::PING, ...) in C++.
30
+ */
31
+ ping(message?: RecognizedString): number;
32
+ /**
33
+ * Subscribe to a topic.
34
+ */
35
+ subscribe(topic: RecognizedString): boolean;
36
+ /**
37
+ * Unsubscribe from a topic. Returns true on success, if the WebSocket was subscribed.
38
+ */
39
+ unsubscribe(topic: RecognizedString): boolean;
40
+ /**
41
+ * Returns whether this websocket is subscribed to topic.
42
+ */
43
+ isSubscribed(topic: RecognizedString): boolean;
44
+ /**
45
+ * Returns a list of topics this websocket is subscribed to.
46
+ */
47
+ getTopics(): string[];
48
+ /**
49
+ * Publish a message under topic. Backpressure is managed according to maxBackpressure, closeOnBackpressureLimit settings.
50
+ * Order is guaranteed since v20.
51
+ */
52
+ publish(topic: RecognizedString, message: RecognizedString, isBinary?: boolean, compress?: boolean): boolean;
53
+ /**
54
+ * See `HttpResponse.cork`. Takes a function in which the socket is corked (packing many sends into one single syscall/SSL block)
55
+ */
56
+ cork(cb: () => void): WebSocket;
57
+ /**
58
+ * Returns the remote IP address. Note that the returned IP is binary, not text.
59
+ *
60
+ * IPv4 is 4 byte long and can be converted to text by printing every byte as a digit between 0 and 255.
61
+ * IPv6 is 16 byte long and can be converted to text in similar ways, but you typically print digits in HEX.
62
+ *
63
+ * See getRemoteAddressAsText() for a text version.
64
+ *
65
+ * @experimental It's an experimental due to unstable of ArrayBuffer support from React Native.
66
+ */
67
+ getRemoteAddress(): ArrayBuffer;
68
+ /**
69
+ * Returns the remote IP address as text.
70
+ */
71
+ getRemoteAddressAsText(): string;
72
+ /**
73
+ * Returns the remote port number.
74
+ */
75
+ getRemotePort(): number;
76
+ /**
77
+ * Returns the UserData ~object~ string.
78
+ */
79
+ getUserData(): string;
80
+ /**
81
+ * Sends the first fragment of a fragmented message. Use for sending large messages in chunks.
82
+ * Returns 1 for success, 2 for dropped due to backpressure limit, and 0 for built up backpressure.
83
+ */
84
+ sendFirstFragment(message: RecognizedString, isBinary?: boolean, compress?: boolean): number;
85
+ /**
86
+ * Sends a middle fragment of a fragmented message.
87
+ * Returns 1 for success, 2 for dropped due to backpressure limit, and 0 for built up backpressure.
88
+ */
89
+ sendFragment(message: RecognizedString, compress?: boolean): number;
90
+ /**
91
+ * Sends the last fragment of a fragmented message.
92
+ * Returns 1 for success, 2 for dropped due to backpressure limit, and 0 for built up backpressure.
93
+ */
94
+ sendLastFragment(message: RecognizedString, compress?: boolean): number;
95
+ }
96
+ //# sourceMappingURL=WebSocket.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebSocket.d.ts","sourceRoot":"","sources":["../../../../src/types/WebSocket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,gBAAgB,EAChB,MAAM,oBAAoB,CAAA;AAE3B;;;GAGG;AACH,MAAM,WAAW,SAAS;IACzB;;;;OAIM;IACN,IAAI,CACH,OAAO,EAAE,gBAAgB,EACzB,QAAQ,CAAC,EAAE,OAAO,EAClB,QAAQ,CAAC,EAAE,OAAO,GACf,MAAM,CAAC;IAEX;;;OAGM;IACN,iBAAiB,IAAK,MAAM,CAAC;IAE7B;;;OAGM;IACN,GAAG,CACF,IAAI,CAAC,EAAE,MAAM,EACb,YAAY,CAAC,EAAE,gBAAgB,GAC5B,IAAI,CAAC;IAET;;;OAGM;IACN,KAAK,IAAK,IAAI,CAAC;IAEf;;OAEG;IACH,IAAI,CACH,OAAO,CAAC,EAAE,gBAAgB,GACvB,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,CACR,KAAK,EAAE,gBAAgB,GACpB,OAAO,CAAC;IAEZ;;OAEG;IACH,WAAW,CACV,KAAK,EAAE,gBAAgB,GACpB,OAAO,CAAC;IAEZ;;OAEG;IACH,YAAY,CACX,KAAK,EAAE,gBAAgB,GACpB,OAAO,CAAC;IAEZ;;OAEG;IACH,SAAS,IAAK,MAAM,EAAE,CAAC;IAEvB;;;OAGM;IACN,OAAO,CACN,KAAK,EAAE,gBAAgB,EACvB,OAAO,EAAE,gBAAgB,EACzB,QAAQ,CAAC,EAAE,OAAO,EAClB,QAAQ,CAAC,EAAE,OAAO,GACf,OAAO,CAAC;IAEZ;;OAEG;IACH,IAAI,CACH,EAAE,EAAE,MAAM,IAAI,GACX,SAAS,CAAiB;IAE9B;;;;;;;;;OASM;IACN,gBAAgB,IAAK,WAAW,CAAC;IAEjC;;OAEG;IACH,sBAAsB,IAAsB,MAAM,CAAC;IAEnD;;OAEG;IACH,aAAa,IAAK,MAAM,CAAC;IAEzB;;OAEG;IACH,WAAW,IAAmB,MAAM,CAAC;IAErC;;;OAGM;IACN,iBAAiB,CAChB,OAAO,EAAE,gBAAgB,EACzB,QAAQ,CAAC,EAAE,OAAO,EAClB,QAAQ,CAAC,EAAE,OAAO,GACf,MAAM,CAAC;IAEX;;;OAGM;IACN,YAAY,CACX,OAAO,EAAE,gBAAgB,EACzB,QAAQ,CAAC,EAAE,OAAO,GACf,MAAM,CAAC;IAEX;;;OAGM;IACN,gBAAgB,CACf,OAAO,EAAE,gBAAgB,EACzB,QAAQ,CAAC,EAAE,OAAO,GACf,MAAM,CAAC;CACX"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=WebSocketBehaviour.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebSocketBehaviour.d.ts","sourceRoot":"","sources":["../../../../src/types/WebSocketBehaviour.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export type * from "./HttpRequest";
2
+ export type * from "./HttpResponse";
3
+ export type * from "./MultipartField";
4
+ export type * from "./RecognizedString";
5
+ export type * from "./TemplatedApp";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAEA,mBAAmB,eAAe,CAAA;AAClC,mBAAmB,gBAAgB,CAAA;AACnC,mBAAmB,kBAAkB,CAAA;AACrC,mBAAmB,oBAAoB,CAAA;AACvC,mBAAmB,gBAAgB,CAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Native type representing a raw uSockets struct us_listen_socket_t.
3
+ * Careful with this one, it is entirely unchecked and native so invalid usage will blow up.
4
+ */
5
+ export interface us_listen_socket {
6
+ }
7
+ //# sourceMappingURL=us_listen_socket.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"us_listen_socket.d.ts","sourceRoot":"","sources":["../../../../src/types/us_listen_socket.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,gBAAgB;CAChC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Native type representing a raw uSockets struct us_socket_t.
3
+ * Careful with this one, it is entirely unchecked and native so invalid usage will blow up.
4
+ */
5
+ export interface us_socket {
6
+ }
7
+ //# sourceMappingURL=us_socket.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"us_socket.d.ts","sourceRoot":"","sources":["../../../../src/types/us_socket.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,SAAS;CACzB"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Native type representing a raw uSockets struct us_socket_context_t.
3
+ * Used while upgrading a WebSocket manually.
4
+ */
5
+ export interface us_socket_context_t {
6
+ }
7
+ //# sourceMappingURL=us_socket_context_t.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"us_socket_context_t.d.ts","sourceRoot":"","sources":["../../../../src/types/us_socket_context_t.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,mBAAmB;CACnC"}
@@ -0,0 +1 @@
1
+ {"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/typescript/lib/lib.es2024.d.ts","../../../node_modules/typescript/lib/lib.es2025.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../node_modules/typescript/lib/lib.es2024.object.d.ts","../../../node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2024.string.d.ts","../../../node_modules/typescript/lib/lib.es2025.collection.d.ts","../../../node_modules/typescript/lib/lib.es2025.float16.d.ts","../../../node_modules/typescript/lib/lib.es2025.intl.d.ts","../../../node_modules/typescript/lib/lib.es2025.iterator.d.ts","../../../node_modules/typescript/lib/lib.es2025.promise.d.ts","../../../node_modules/typescript/lib/lib.es2025.regexp.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/typescript/lib/lib.es2025.full.d.ts","../../../node_modules/react-native/types/modules/batchedbridge.d.ts","../../../node_modules/react-native/libraries/vendor/emitter/eventemitter.d.ts","../../../node_modules/react-native/types/modules/codegen.d.ts","../../../node_modules/react-native/types/modules/devtools.d.ts","../../../node_modules/react-native/libraries/vendor/core/errorutils.d.ts","../../../node_modules/react-native/src/types/globals.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/react-native/types/private/utilities.d.ts","../../../node_modules/react-native/types/public/insets.d.ts","../../../node_modules/react-native/types/public/reactnativetypes.d.ts","../../../node_modules/react-native/libraries/types/coreeventtypes.d.ts","../../../node_modules/react-native/types/public/reactnativerenderer.d.ts","../../../node_modules/react-native/libraries/components/touchable/touchable.d.ts","../../../node_modules/react-native/libraries/components/view/viewaccessibility.d.ts","../../../node_modules/react-native/libraries/components/view/viewproptypes.d.ts","../../../node_modules/react-native/libraries/components/refreshcontrol/refreshcontrol.d.ts","../../../node_modules/react-native/libraries/components/view/view.d.ts","../../../node_modules/react-native/libraries/components/scrollview/scrollview.d.ts","../../../node_modules/react-native/libraries/image/imageresizemode.d.ts","../../../node_modules/react-native/libraries/image/imagesource.d.ts","../../../node_modules/react-native/libraries/image/image.d.ts","../../../node_modules/@react-native/virtualized-lists/lists/virtualizedlist.d.ts","../../../node_modules/@react-native/virtualized-lists/index.d.ts","../../../node_modules/react-native/libraries/lists/flatlist.d.ts","../../../node_modules/react-native/libraries/reactnative/rendererproxy.d.ts","../../../node_modules/react-native/libraries/lists/sectionlist.d.ts","../../../node_modules/react-native/libraries/text/text.d.ts","../../../node_modules/react-native/libraries/animated/animated.d.ts","../../../node_modules/react-native/libraries/stylesheet/stylesheettypes.d.ts","../../../node_modules/react-native/libraries/stylesheet/stylesheet.d.ts","../../../node_modules/react-native/libraries/stylesheet/processcolor.d.ts","../../../node_modules/react-native/libraries/actionsheetios/actionsheetios.d.ts","../../../node_modules/react-native/libraries/alert/alert.d.ts","../../../node_modules/react-native/libraries/animated/easing.d.ts","../../../node_modules/react-native/libraries/animated/useanimatedvalue.d.ts","../../../node_modules/react-native/libraries/animated/useanimatedvaluexy.d.ts","../../../node_modules/react-native/libraries/animated/useanimatedcolor.d.ts","../../../node_modules/react-native/libraries/eventemitter/rctdeviceeventemitter.d.ts","../../../node_modules/react-native/libraries/eventemitter/rctnativeappeventemitter.d.ts","../../../node_modules/react-native/libraries/appstate/appstate.d.ts","../../../node_modules/react-native/libraries/batchedbridge/nativemodules.d.ts","../../../node_modules/react-native/libraries/components/accessibilityinfo/accessibilityinfo.d.ts","../../../node_modules/react-native/libraries/components/activityindicator/activityindicator.d.ts","../../../node_modules/react-native/libraries/components/clipboard/clipboard.d.ts","../../../node_modules/react-native/libraries/components/drawerandroid/drawerlayoutandroid.d.ts","../../../node_modules/react-native/libraries/eventemitter/nativeeventemitter.d.ts","../../../node_modules/react-native/libraries/components/keyboard/keyboard.d.ts","../../../node_modules/react-native/types/private/timermixin.d.ts","../../../node_modules/react-native/libraries/components/keyboard/keyboardavoidingview.d.ts","../../../node_modules/react-native/libraries/components/layoutconformance/layoutconformance.d.ts","../../../node_modules/react-native/libraries/components/pressable/pressable.d.ts","../../../node_modules/react-native/libraries/components/progressbarandroid/progressbarandroid.d.ts","../../../node_modules/react-native/libraries/components/safeareaview/safeareaview.d.ts","../../../node_modules/react-native/libraries/components/statusbar/statusbar.d.ts","../../../node_modules/react-native/libraries/components/switch/switch.d.ts","../../../node_modules/react-native/libraries/components/textinput/inputaccessoryview.d.ts","../../../node_modules/react-native/libraries/components/textinput/textinput.d.ts","../../../node_modules/react-native/libraries/components/toastandroid/toastandroid.d.ts","../../../node_modules/react-native/libraries/components/touchable/touchablewithoutfeedback.d.ts","../../../node_modules/react-native/libraries/components/touchable/touchablehighlight.d.ts","../../../node_modules/react-native/libraries/components/touchable/touchableopacity.d.ts","../../../node_modules/react-native/libraries/components/touchable/touchablenativefeedback.d.ts","../../../node_modules/react-native/libraries/components/button.d.ts","../../../node_modules/react-native/libraries/core/registercallablemodule.d.ts","../../../node_modules/react-native/libraries/nativecomponent/nativecomponentregistry.d.ts","../../../node_modules/react-native/libraries/interaction/interactionmanager.d.ts","../../../node_modules/react-native/libraries/interaction/panresponder.d.ts","../../../node_modules/react-native/libraries/layoutanimation/layoutanimation.d.ts","../../../node_modules/react-native/libraries/linking/linking.d.ts","../../../node_modules/react-native/libraries/logbox/logbox.d.ts","../../../node_modules/react-native/libraries/modal/modal.d.ts","../../../node_modules/react-native/libraries/performance/systrace.d.ts","../../../node_modules/react-native/libraries/permissionsandroid/permissionsandroid.d.ts","../../../node_modules/react-native/libraries/pushnotificationios/pushnotificationios.d.ts","../../../node_modules/react-native/libraries/utilities/iperformancelogger.d.ts","../../../node_modules/react-native/libraries/reactnative/appregistry.d.ts","../../../node_modules/react-native/libraries/reactnative/i18nmanager.d.ts","../../../node_modules/react-native/libraries/reactnative/roottag.d.ts","../../../node_modules/react-native/libraries/reactnative/uimanager.d.ts","../../../node_modules/react-native/libraries/reactnative/requirenativecomponent.d.ts","../../../node_modules/react-native/libraries/settings/settings.d.ts","../../../node_modules/react-native/libraries/share/share.d.ts","../../../node_modules/react-native/libraries/stylesheet/platformcolorvaluetypesios.d.ts","../../../node_modules/react-native/libraries/stylesheet/platformcolorvaluetypes.d.ts","../../../node_modules/react-native/libraries/turbomodule/rctexport.d.ts","../../../node_modules/react-native/libraries/turbomodule/turbomoduleregistry.d.ts","../../../node_modules/react-native/libraries/types/codegentypesnamespace.d.ts","../../../node_modules/react-native/libraries/utilities/appearance.d.ts","../../../node_modules/react-native/libraries/utilities/backhandler.d.ts","../../../node_modules/react-native/src/private/devsupport/devmenu/devmenu.d.ts","../../../node_modules/react-native/libraries/utilities/devsettings.d.ts","../../../node_modules/react-native/libraries/utilities/dimensions.d.ts","../../../node_modules/react-native/libraries/utilities/pixelratio.d.ts","../../../node_modules/react-native/libraries/utilities/platform.d.ts","../../../node_modules/react-native/libraries/vibration/vibration.d.ts","../../../node_modules/react-native/types/public/deprecatedpropertiesalias.d.ts","../../../node_modules/react-native/libraries/utilities/codegennativecommands.d.ts","../../../node_modules/react-native/libraries/utilities/codegennativecomponent.d.ts","../../../node_modules/react-native/types/index.d.ts","../../src/_internal/native-modules/nativereactnativeuws.ts","../../src/types/recognizedstring.ts","../../src/types/httprequest.ts","../../src/types/httpresponse.ts","../../src/types/multipartfield.ts","../../src/modules/listenoptions.ts","../../src/types/httprouteroptions.ts","../../src/types/templatedapp.ts","../../src/types/index.ts","../../src/modules/app.ts","../../src/modules/getparts.ts","../../src/modules/us_listen_socket_close.ts","../../src/modules/us_socket_local_port.ts","../../src/modules/index.ts","../../src/index.ts","../../src/modules/compressoptions.ts","../../src/modules/environmentvariables.ts","../../src/modules/sslapp.ts","../../src/types/appdescriptor.ts","../../src/types/appoptions.ts","../../src/types/websocket.ts","../../src/types/websocketbehaviour.ts","../../src/types/us_listen_socket.ts","../../src/types/us_socket.ts","../../src/types/us_socket_context_t.ts"],"fileIdsList":[[106],[91,183],[89,90],[114,115],[91,95,101,102,105,108,110,111,114],[112],[123],[84,94],[91,92,94,95,99,113,114],[91,114,145,146],[91,92,94,95,99,114],[84,130],[91,92,99,113,114,132],[91],[91,93,95,98,99,101,113,114],[91,92,94,99,114],[91,92,94,99],[91,92,93,94,95,97,99,100,101,113,114],[91,114],[91,113,114],[84,91,92,94,95,98,99,113,114,132],[91,93,95],[91,101,113,114,143],[91,92,97,114,143,145],[91,101,143],[91,92,93,95,97,98,113,114,132],[95],[91,93,95,96,97,98,113,114],[84],[122],[91,92,93,94,95,98,103,104,113,114],[95,96],[91,101,102,107,113,114],[91,102,107,109,113,114],[91,95,99,114],[91,94],[91,113,159],[94],[114],[113],[103,112,114],[91,92,94,95,98,113,114],[169],[84,183],[183],[130],[87],[83,84,85,86,87,88,93,94,95,96,97,98,99,100,101,102,103,104,105,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182],[86],[192,197],[184,192],[189,193,194,195,196],[184],[185],[185,186,187,188,191],[185,186,187,189,190]],"fileInfos":[{"version":"bcd24271a113971ba9eb71ff8cb01bc6b0f872a85c23fdbe5d93065b375933cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f88bedbeb09c6f5a6645cb24c7c55f1aa22d19ae96c8e6959cbd8b85a707bc6","impliedFormat":1},{"version":"7fe93b39b810eadd916be8db880dd7f0f7012a5cc6ffb62de8f62a2117fa6f1f","impliedFormat":1},{"version":"bb0074cc08b84a2374af33d8bf044b80851ccc9e719a5e202eacf40db2c31600","impliedFormat":1},{"version":"1a7daebe4f45fb03d9ec53d60008fbf9ac45a697fdc89e4ce218bc94b94f94d6","impliedFormat":1},{"version":"f94b133a3cb14a288803be545ac2683e0d0ff6661bcd37e31aaaec54fc382aed","impliedFormat":1},{"version":"f59d0650799f8782fd74cf73c19223730c6d1b9198671b1c5b3a38e1188b5953","impliedFormat":1},{"version":"8a15b4607d9a499e2dbeed9ec0d3c0d7372c850b2d5f1fb259e8f6d41d468a84","impliedFormat":1},{"version":"26e0fe14baee4e127f4365d1ae0b276f400562e45e19e35fd2d4c296684715e6","impliedFormat":1},{"version":"1e9332c23e9a907175e0ffc6a49e236f97b48838cc8aec9ce7e4cec21e544b65","impliedFormat":1},{"version":"3753fbc1113dc511214802a2342280a8b284ab9094f6420e7aa171e868679f91","impliedFormat":1},{"version":"999ca32883495a866aa5737fe1babc764a469e4cde6ee6b136a4b9ae68853e4b","impliedFormat":1},{"version":"d6b1eba8496bdd0eed6fc8a685768fe01b2da4a0388b5fe7df558290bffcf32f","affectsGlobalScope":true,"impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"2a2de5b9459b3fc44decd9ce6100b72f1b002ef523126c1d3d8b2a4a63d74d78","affectsGlobalScope":true,"impliedFormat":1},{"version":"f13f4b465c99041e912db5c44129a94588e1aafee35a50eab51044833f50b4ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"eadcffda2aa84802c73938e589b9e58248d74c59cb7fcbca6474e3435ac15504","affectsGlobalScope":true,"impliedFormat":1},{"version":"105ba8ff7ba746404fe1a2e189d1d3d2e0eb29a08c18dded791af02f29fb4711","affectsGlobalScope":true,"impliedFormat":1},{"version":"00343ca5b2e3d48fa5df1db6e32ea2a59afab09590274a6cccb1dbae82e60c7c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ebd9f816d4002697cb2864bea1f0b70a103124e18a8cd9645eeccc09bdf80ab4","affectsGlobalScope":true,"impliedFormat":1},{"version":"2c1afac30a01772cd2a9a298a7ce7706b5892e447bb46bdbeef720f7b5da77ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"7b0225f483e4fa685625ebe43dd584bb7973bbd84e66a6ba7bbe175ee1048b4f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0a4b8ac6ce74679c1da2b3795296f5896e31c38e888469a8e0f99dc3305de60","affectsGlobalScope":true,"impliedFormat":1},{"version":"3084a7b5f569088e0146533a00830e206565de65cae2239509168b11434cd84f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5079c53f0f141a0698faa903e76cb41cd664e3efb01cc17a5c46ec2eb0bef42","affectsGlobalScope":true,"impliedFormat":1},{"version":"32cafbc484dea6b0ab62cf8473182bbcb23020d70845b406f80b7526f38ae862","affectsGlobalScope":true,"impliedFormat":1},{"version":"fca4cdcb6d6c5ef18a869003d02c9f0fd95df8cfaf6eb431cd3376bc034cad36","affectsGlobalScope":true,"impliedFormat":1},{"version":"b93ec88115de9a9dc1b602291b85baf825c85666bf25985cc5f698073892b467","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5c06dcc3fe849fcb297c247865a161f995cc29de7aa823afdd75aaaddc1419b","affectsGlobalScope":true,"impliedFormat":1},{"version":"b77e16112127a4b169ef0b8c3a4d730edf459c5f25fe52d5e436a6919206c4d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"fbffd9337146eff822c7c00acbb78b01ea7ea23987f6c961eba689349e744f8c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a995c0e49b721312f74fdfb89e4ba29bd9824c770bbb4021d74d2bf560e4c6bd","affectsGlobalScope":true,"impliedFormat":1},{"version":"c7b3542146734342e440a84b213384bfa188835537ddbda50d30766f0593aff9","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce6180fa19b1cccd07ee7f7dbb9a367ac19c0ed160573e4686425060b6df7f57","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f02e2476bccb9dbe21280d6090f0df17d2f66b74711489415a8aa4df73c9675","affectsGlobalScope":true,"impliedFormat":1},{"version":"45e3ab34c1c013c8ab2dc1ba4c80c780744b13b5676800ae2e3be27ae862c40c","affectsGlobalScope":true,"impliedFormat":1},{"version":"805c86f6cca8d7702a62a844856dbaa2a3fd2abef0536e65d48732441dde5b5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e42e397f1a5a77994f0185fd1466520691456c772d06bf843e5084ceb879a0ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"f4c2b41f90c95b1c532ecc874bd3c111865793b23aebcc1c3cbbabcd5d76ffb0","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab26191cfad5b66afa11b8bf935ef1cd88fabfcb28d30b2dfa6fad877d050332","affectsGlobalScope":true,"impliedFormat":1},{"version":"2088bc26531e38fb05eedac2951480db5309f6be3fa4a08d2221abb0f5b4200d","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb9d366c425fea79716a8fb3af0d78e6b22ebbab3bd64d25063b42dc9f531c1e","affectsGlobalScope":true,"impliedFormat":1},{"version":"500934a8089c26d57ebdb688fc9757389bb6207a3c8f0674d68efa900d2abb34","affectsGlobalScope":true,"impliedFormat":1},{"version":"689da16f46e647cef0d64b0def88910e818a5877ca5379ede156ca3afb780ac3","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc21cc8b6fee4f4c2440d08035b7ea3c06b3511314c8bab6bef7a92de58a2593","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ca53d13d2957003abb47922a71866ba7cb2068f8d154877c596d63c359fed25","affectsGlobalScope":true,"impliedFormat":1},{"version":"54725f8c4df3d900cb4dac84b64689ce29548da0b4e9b7c2de61d41c79293611","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5594bc3076ac29e6c1ebda77939bc4c8833de72f654b6e376862c0473199323","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f3eb332c2d73e729f3364fcc0c2b375e72a121e8157d25a82d67a138c83a95c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f4427f9642ce8d500970e4e69d1397f64072ab73b97e476b4002a646ac743b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"48915f327cd1dea4d7bd358d9dc7732f58f9e1626a29cc0c05c8c692419d9bb7","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7bf9377723203b5a6a4b920164df22d56a43f593269ba6ae1fdc97774b68855","affectsGlobalScope":true,"impliedFormat":1},{"version":"db9709688f82c9e5f65a119c64d835f906efe5f559d08b11642d56eb85b79357","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b25b8c874acd1a4cf8444c3617e037d444d19080ac9f634b405583fd10ce1f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"37be57d7c90cf1f8112ee2636a068d8fd181289f82b744160ec56a7dc158a9f5","affectsGlobalScope":true,"impliedFormat":1},{"version":"a917a49ac94cd26b754ab84e113369a75d1a47a710661d7cd25e961cc797065f","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d3261badeb7843d157ef3e6f5d1427d0eeb0af0cf9df84a62cfd29fd47ac86e","affectsGlobalScope":true,"impliedFormat":1},{"version":"195daca651dde22f2167ac0d0a05e215308119a3100f5e6268e8317d05a92526","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b11e4285cd2bb164a4dc09248bdec69e9842517db4ca47c1ba913011e44ff2f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0508571a52475e245b02bc50fa1394065a0a3d05277fbf5120c3784b85651799","affectsGlobalScope":true,"impliedFormat":1},{"version":"8f9af488f510c3015af3cc8c267a9e9d96c4dd38a1fdff0e11dc5a544711415b","affectsGlobalScope":true,"impliedFormat":1},{"version":"fc611fea8d30ea72c6bbfb599c9b4d393ce22e2f5bfef2172534781e7d138104","affectsGlobalScope":true,"impliedFormat":1},{"version":"0bd714129fca875f7d4c477a1a392200b0bcd13fb2e80928cd334b63830ea047","affectsGlobalScope":true,"impliedFormat":1},{"version":"e2c9037ae6cd2c52d80ceef0b3c5ffdb488627d71529cf4f63776daf11161c9a","affectsGlobalScope":true,"impliedFormat":1},{"version":"135d5cf4d345f59f1a9caadfafcd858d3d9cc68290db616cc85797224448cccc","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc238c3f81c2984751932b6aab223cd5b830e0ac6cad76389e5e9d2ffc03287d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4a07f9b76d361f572620927e5735b77d6d2101c23cdd94383eb5b706e7b36357","affectsGlobalScope":true,"impliedFormat":1},{"version":"7c4e8dc6ab834cc6baa0227e030606d29e3e8449a9f67cdf5605ea5493c4db29","affectsGlobalScope":true,"impliedFormat":1},{"version":"de7ba0fd02e06cd9a5bd4ab441ed0e122735786e67dde1e849cced1cd8b46b78","affectsGlobalScope":true,"impliedFormat":1},{"version":"6148e4e88d720a06855071c3db02069434142a8332cf9c182cda551adedf3156","affectsGlobalScope":true,"impliedFormat":1},{"version":"d63dba625b108316a40c95a4425f8d4294e0deeccfd6c7e59d819efa19e23409","affectsGlobalScope":true,"impliedFormat":1},{"version":"0568d6befee03dd435bed4fc25c4e46865b24bdcb8c563fdc21f580a2c301904","affectsGlobalScope":true,"impliedFormat":1},{"version":"30d62269b05b584741f19a5369852d5d34895aa2ac4fd948956f886d15f9cc0d","affectsGlobalScope":true,"impliedFormat":1},{"version":"f128dae7c44d8f35ee42e0a437000a57c9f06cc04f8b4fb42eebf44954d53dc8","affectsGlobalScope":true,"impliedFormat":1},{"version":"ffbe6d7b295306b2ba88030f65b74c107d8d99bdcf596ea99c62a02f606108b0","affectsGlobalScope":true,"impliedFormat":1},{"version":"996fb27b15277369c68a4ba46ed138b4e9e839a02fb4ec756f7997629242fd9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"79b712591b270d4778c89706ca2cfc56ddb8c3f895840e477388f1710dc5eda9","affectsGlobalScope":true,"impliedFormat":1},{"version":"20884846cef428b992b9bd032e70a4ef88e349263f63aeddf04dda837a7dba26","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ce14b81c5cc821994aa8ec1d42b220dd41b27fcc06373bce3958af7421b77d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3a048b3e9302ef9a34ef4ebb9aecfb28b66abb3bce577206a79fee559c230da","affectsGlobalScope":true,"impliedFormat":1},{"version":"e03da518b01b46a4c99a1f88cd727ee98ddf14492c43dae1ae7a63e992971bab","impliedFormat":1},{"version":"3a909e8789a4f8b5377ef3fb8dc10d0c0a090c03f2e40aab599534727457475a","affectsGlobalScope":true,"impliedFormat":1},{"version":"fd412dd6372493eb8e3e95cae8687d35e4d34dde905a33e0ee47b74224cdd6ab","impliedFormat":1},{"version":"9d3b119c15e8eeb9a8fbeca47e0165ca7120704d90bf123b16ee5b612e2ecc9d","impliedFormat":1},{"version":"9f66eb21b8f041974625ec8f8ab3c6c36990b900b053ba962bb8b233301c8e47","impliedFormat":1},{"version":"005319c82222e57934c7b211013eb6931829e46b2a61c5d9a1c3c25f8dc3ea90","impliedFormat":1},{"version":"7ec03b79f5b8c3e30e058e8170a042d46a3e1ab00ab9a58ed1655542bb42e9b4","affectsGlobalScope":true,"impliedFormat":1},{"version":"7e29f41b158de217f94cb9676bf9cbd0cd9b5a46e1985141ed36e075c52bf6ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac51dd7d31333793807a6abaa5ae168512b6131bd41d9c5b98477fc3b7800f9f","impliedFormat":1},{"version":"dc0a7f107690ee5cd8afc8dbf05c4df78085471ce16bdd9881642ec738bc81fe","impliedFormat":1},{"version":"232f660363b3b189f7be7822ed71e907195d1a85bc8d55d2b7ce3f09b2136938","impliedFormat":1},{"version":"e745388cfad9efb4e5a9a15a2c6b66d54094dd82f8d0c2551064e216f7b51526","impliedFormat":1},{"version":"84c8272b0651d84378f8d76bcc563fca1e88866f30fffd790d87648861d18ab1","impliedFormat":1},{"version":"cf1e23408bb2e38cb90d109cf8027c829f19424ad7a611c74edf39e1f195fe22","impliedFormat":1},{"version":"8ebf448e9837fda1a368acbb575b0e28843d5b2a3fda04bce76248b64326ea49","impliedFormat":1},{"version":"91b9f6241fca7843985aa31157cfa08cc724c77d91145a4d834d27cdde099c05","impliedFormat":1},{"version":"c5dc49c81f9cb20dff16b7933b50e19ac3565430cf685bbe51bcbcdb760fc03f","impliedFormat":1},{"version":"d78d4bc8bbda13ed147b23e63ff4ac83e3dcf4f07012afadd59e8a62473b5894","impliedFormat":1},{"version":"49f33cb54f1c57d269113fae1784795945957989b3b3e50e61cc6666c37698e7","impliedFormat":1},{"version":"f3c9bbc02c599af23defd5ca3683e46b4f3fa8a3e21a0194eac9910086050a0c","impliedFormat":1},{"version":"71ea55d90792c303eb5d653a5d11ffb9b887ec9735d64f466ad64d0509cde883","impliedFormat":1},{"version":"e7d56fa3c64c44b29fa11d840b1fe04f6d782fc2e341a1f01b987f5e59f34266","impliedFormat":1},{"version":"0f86beb951b048eb7e0a17609e934a59a8686683b2134632975baeacaf53c23d","impliedFormat":1},{"version":"e51855f55b01c41984044b49bd926b878a825ae696e62d77abf5b8c7f17922a3","impliedFormat":1},{"version":"c16b3221e31c25ef95c37c05c465abf16cbf6c9a7172f82cb5f8e697bd84ce03","impliedFormat":1},{"version":"42bacb33cddecbcfe3e043ee1117ba848801749e44f947626765b3e0aec74b1c","impliedFormat":1},{"version":"4e1bfec0f44a463f25cc26528a4505bc592feef555706311a143481f69a21d6f","impliedFormat":1},{"version":"cd2156bc8e4d54d52a2817d1b6f4629a5dd3173b1d8bb0fc893ee678d6a78ecd","impliedFormat":1},{"version":"6887bea839d87a3616091b06cfdd482b6180e62ea673341cac6a43c3493b639e","impliedFormat":1},{"version":"82eacfd7ea5b2ad312235aa279aaa1aecebed6b58d0f79fecc6f48a70417fa75","impliedFormat":1},{"version":"b35bd6bfc2bf2af6b28a6a1ba9d2a96eb551ea1b72353d2dbc2f85ecf2d688ef","impliedFormat":1},{"version":"1e6a28ff00137d6350a5e94b6ba35b4f16df851ba6b6c8fd1ba0973e2044d6a6","impliedFormat":1},{"version":"8692ab54f6ee8d957b6a3b49adef709c5d6d0ffdfae71c90d796b43d0c3dfa32","impliedFormat":1},{"version":"9054417b5760061bc5fe31f9eee5dc9bf018339b0617d3c65dd1673c8e3c0f25","impliedFormat":1},{"version":"c6b68cd2e7838e91e05ede0a686815f521024281768f338644f6c0e0ad8e63cd","impliedFormat":1},{"version":"20c7a8cb00fda35bf50333488657c20fd36b9af9acb550f8410ef3e9bef51ef0","impliedFormat":1},{"version":"c94f70562ae60797cce564c3bebbaaf1752c327d5063d6ac152aa5ca1616c267","impliedFormat":1},{"version":"2aeb5fcdfc884b16015617d263fd8d1a8513f7efe23880be4e5f0bdb3794b37c","impliedFormat":1},{"version":"7775860d545679aadbe90ab59c9278c839fd98a5259074c200fd3eafae4af3a1","impliedFormat":1},{"version":"d0303afad324baa4739ffaee626daa433a819e8a4f3f473551f69d1b9683a118","impliedFormat":1},{"version":"b561170fbe8d4292425e1dfa52406c8d97575681f7a5e420d11d9f72f7c29e38","impliedFormat":1},{"version":"5fe94f3f6411a0f6293f16fdc8e02ee61138941847ce91d6f6800c97fac22fcd","impliedFormat":1},{"version":"7f7c0ecc3eeeef905a3678e540947f4fbbc1a9c76075419dcc5fbfc3df59cb0b","impliedFormat":1},{"version":"df3303018d45c92be73fb4a282d5a242579f96235f5e0f8981983102caf5feca","impliedFormat":1},{"version":"0f1b593fc15591a6c6e8e5ee4c022b720e1c6e8524c1dd5196df42046808f033","impliedFormat":1},{"version":"d45c2f63eab3d231c75a446cf9578c904f17f096e712e3375934a554470c9575","impliedFormat":1},{"version":"084d0df6805570b6dc6c8b49c3a71d5bdfe59606901e0026c63945b68d4b080a","impliedFormat":1},{"version":"32bd5e456193f931b2a59b68e3801a2a0943dc641330389afc38e8277875a6da","impliedFormat":1},{"version":"0f066f9654e700a9cf79c75553c934eb14296aa80583bd2b5d07e2d582a3f4ee","impliedFormat":1},{"version":"269c5d54104033b70331343bd931c9933852a882391ed6bd98c3d8b7d6465d22","impliedFormat":1},{"version":"a56b8577aaf471d9e60582065a8193269310e8cae48c1ce4111ed03216f5f715","impliedFormat":1},{"version":"486ae83cd51b813095f6716f06cc9b2cf480ad1d6c7f8ec59674d6c858cd2407","impliedFormat":1},{"version":"039f0a1f6d67514bbfea62ffbb0822007ce35ba180853ec9034431f60f63dbe6","impliedFormat":1},{"version":"5a0dd973c2412649b7935514565d937ba888ce5fdf5dbae21766d5662b61aa95","impliedFormat":1},{"version":"dbd0bf577d4ec8368f3456fba405dc1989ce343f6c7a13347dbabd363ec22b4f","impliedFormat":1},{"version":"919492794863d6badec9ec17490ca445c3d79adf5df102eaa6ba0241a287dc20","impliedFormat":1},{"version":"b7d1cdc9810b334734a7d607c195daa721df6d114d99e96d595ff52db1df627b","impliedFormat":1},{"version":"946cce58bd3eb8d6235e288023aac2a13427e07022e9771c5bbdfa8ad6377101","impliedFormat":1},{"version":"77282216c61bcef9a700db98e142301d5a7d988d3076286029da63e415e98a42","impliedFormat":1},{"version":"e4f9959716f2d0f9946e9b9502c8aadf87aae7e389e6e5be53c27c8cc0181bb6","impliedFormat":1},{"version":"75ff8ea2c0c632719c14f50849c1fc7aa2d49f42b08c54373688536b3f995ee7","impliedFormat":1},{"version":"85a915dbb768b89cb92f5e6c165d776bfebd065883c34fee4e0219c3ed321b47","impliedFormat":1},{"version":"83df2f39cb14971adea51d1c84e7d146a34e9b7f84ad118450a51bdc3138412c","impliedFormat":1},{"version":"96d6742b440a834780d550fffc57d94d0aece2e04e485bce8d817dc5fb9b05d7","impliedFormat":1},{"version":"bdb2b70c74908c92ec41d8dd8375a195cb3bb07523e4de642b2b2dfbde249ca6","impliedFormat":1},{"version":"7b329f4137a552073f504022acbf8cd90d49cc5e5529791bef508f76ff774854","impliedFormat":1},{"version":"f63bbbffcfc897d22f34cf19ae13405cd267b1783cd21ec47d8a2d02947c98c1","impliedFormat":1},{"version":"cef48408162200abaea0c3a1be25a41fcd1b4dc41c3b90be6a89dde5ca4375c0","impliedFormat":1},{"version":"9da2649fb89af9bd08b2215621ad1cfda50f798d0acbd0d5fee2274ee940c827","impliedFormat":1},{"version":"df55b9be6ba19a6f77487e09dc7a94d7c9bf66094d35ea168dbd4bac42c46b8f","impliedFormat":1},{"version":"595125f3e088b883d104622ef10e6b7d5875ff6976bbe4d7dca090a3e2dca513","impliedFormat":1},{"version":"737fc8159cb99bf39a201c4d7097e92ad654927da76a1297ace7ffe358a2eda3","impliedFormat":1},{"version":"e0d7eed4ba363df3faadb8e617f95f9fc8adfbb00b87db7ade4a1098d6cf1e90","impliedFormat":1},{"version":"676088e53ca31e9e21e53f5a8996345d1b8a7d153737208029db964279004c3e","impliedFormat":1},{"version":"de115595321ce012c456f512a799679bfc874f0ac0a4928a8429557bb25086aa","impliedFormat":1},{"version":"896e4b676a6f55ca66d40856b63ec2ff7f4f594d6350f8ae04eaee8876da0bc5","impliedFormat":1},{"version":"0524cab11ba9048d151d93cc666d3908fda329eec6b1642e9a936093e6d79f28","impliedFormat":1},{"version":"869073d7523e75f45bd65b2072865c60002d5e0cbd3d17831e999cf011312778","impliedFormat":1},{"version":"bc7b5906a6ce6c5744a640c314e020856be6c50a693e77dc12aff2d77b12ca76","impliedFormat":1},{"version":"56503e377bc1344f155e4e3115a772cb4e59350c0b8131e3e1fb2750ac491608","impliedFormat":1},{"version":"6b579287217ee1320ee1c6cfec5f6730f3a1f91daab000f7131558ee531b2bf8","impliedFormat":1},{"version":"2586bc43511ba0f0c4d8e35dacf25ed596dde8ec50b9598ecd80194af52f992f","impliedFormat":1},{"version":"a793636667598e739a52684033037a67dc2d9db37fab727623626ef19aa5abb9","impliedFormat":1},{"version":"b15d6238a86bc0fc2368da429249b96c260debc0cec3eb7b5f838ad32587c129","impliedFormat":1},{"version":"9a9fba3a20769b0a74923e7032997451b61c1bd371c519429b29019399040d74","impliedFormat":1},{"version":"4b10e2fe52cb61035e58df3f1fdd926dd0fe9cf1a2302f92916da324332fb4e0","impliedFormat":1},{"version":"d1092ae8d6017f359f4758115f588e089848cc8fb359f7ba045b1a1cf3668a49","impliedFormat":1},{"version":"ddae9195b0da7b25a585ef43365f4dc5204a746b155fbee71e6ee1a9193fb69f","impliedFormat":1},{"version":"32dbced998ce74c5e76ce87044d0b4071857576dde36b0c6ed1d5957ce9cf5b5","impliedFormat":1},{"version":"29befd9bb08a9ed1660fd7ac0bc2ad24a56da550b75b8334ac76c2cfceda974a","impliedFormat":1},{"version":"ed8a8dedbd26d5c101bcc2d1691535d1fd0470dc82d7e866391e9b31b851ea8c","impliedFormat":1},{"version":"0aba767f26742d337f50e46f702a95f83ce694101fa9b8455786928a5672bb9b","impliedFormat":1},{"version":"8db57d8da0ab49e839fb2d0874cfe456553077d387f423a7730c54ef5f494318","impliedFormat":1},{"version":"ecc1b8878c8033bde0204b85e26fe1af6847805427759e5723882c848a11e134","impliedFormat":1},{"version":"cfc9c32553ad3b5be38342bc8731397438a93531118e1a226a8c79ad255b4f0c","impliedFormat":1},{"version":"16e5b5b023c2a1119c1878a51714861c56255778de0a7fe378391876a15f7433","impliedFormat":1},{"version":"f65096bb6555aad0429c5b6b21b92683398434be9b2ce0d3a1fdbb651c1243f1","impliedFormat":1},{"version":"a090a8a3b0ef2cceeb089acf4df95df72e7d934215896afe264ff6f734d66d15","impliedFormat":1},{"version":"151f422f08c8ca67b77c5c39d49278b4df452ef409237c8219be109ae3cdae9d","impliedFormat":1},{"version":"412a06aa68e902bc67d69f381c06f8fd52497921c5746fabddadd44f624741f5","impliedFormat":1},{"version":"400552c87bd7cf5143bf7efdc13df91514f0b1fa75b5b10bf242d555919f8c67","impliedFormat":1},{"version":"679d513ae215eefa414420d8ba9234711c62524f38b8cf96e67f9f1591fefdfe","impliedFormat":1},{"version":"1962baf590be6148f2badd769ed544ae5b994d264ffb7be6e8355aa980464b1b","signature":"9a50692cdc3e71f298d760ae371fe59851e1597c43c9e397b8c249d5d76d18ca"},{"version":"a855bfe85dc92cabbfa543efd3a4dbe3720ad4500b7a5d946a243f5029aa4a87","signature":"b67dc0d44f65d535476148570120c8d32a0003c7c1637393bbd4a0f96191e94a"},{"version":"e9f8b6911fae3b2d55770a5b8bf040fb93b233431e944be8d4fe0ed8af25e05a","signature":"2e49111fa0153551e992a097a3207c17cb9e7409397ef780ccd9d7152e5cf26a"},{"version":"190863099d08389c530773bfff35bb8a01ffa8a9eee6f34ea62131bca6863b21","signature":"092e18e297ed186f65bdfc586f016b7dcf6a184cb1a75ed6a88f068f8387afdb"},{"version":"e844e2c4beed76c29262b4d4c1ea7b5d1264cf41b145e61f963382c05cd49a77","signature":"26aca5480777595a69cb66178573697d37a8a605523d52a9f7ebe2b3492f95a4"},{"version":"9f145cd502916eeede68144b71d3f9bde5254d88ad2f85ea26ece393413b479c","signature":"dc1bce0a429fbef53d92cbe99f7c190df55841b5f2b46dff72b84b40536030b2"},{"version":"2857488dfc98f74d08863834cdd752cfbe053a55bb3e50efae829ab5bc61750b","signature":"156029343cb734e6a07d52b1aad36fb483b51303a95db89eb5cfbdf87a028f0c"},{"version":"9245ce006e1f5a52d0de2b08ddb8edf446bab68a15a8c18e9ab34d3dcaf60bcb","signature":"431be374f5a730e49e389ec6a7136a8193d18505df8769149dfac874da40cd0a"},{"version":"42b841b0059a6e837c879f471d410df6af1fd9589b4732e9dcd5eee2181923bc","signature":"663acf58ac8966170066e1a2ecd0e96559f2b195f6f717ae1e6c603bdcab20fc"},{"version":"760c4d1ce8bd7ea14d03b185f475900fe193f81c7ca7fe8afc030a0e3ff1ad50","signature":"d675fc60ee4c63ba0bb7c8126a629dea423803822c109c7f057bfc4e05fbaa16"},{"version":"9eb1fa0d21f789eb20d9ef032f79faae10fda5d046ad8cbbd4b21b1034ba5e88","signature":"1bb7d0cd255f8a2155015de80cd88185573e79b6cf4c142cdf881a3541133a62"},{"version":"9390c9c93f3e8b7a976373d808117e25019a6cec35581cb3fbaef73400e20a0c","signature":"f1ef903b2b5fb801152d3cffea0fb661e7dbcdac1dcf917e38b728e692e2e1e5"},{"version":"f25f2bd3b12bf5da3a8b0cbd80359e4ea9cb2b2f133d4798b6bd91323544e0f2","signature":"5d5e1dcc835ce10a67540defff93f7c0093050c131ade78ac3fec7fdb3f14ea4"},{"version":"685db8286bda15e1686b98102faed64381bf2ad9948ccaf7453fd8ad8840d2c5","signature":"6b98223936c83378075db28120d1284b0ce3fd7a2c10210752b14d2f6740c8c4"},{"version":"987b01309e7145b18a55d953792589fbeca79b165743463e7a3c88df515d9453","signature":"f2d71c74b0b728265952816c6bcc1661f480bb7b8b8325b87b8007c5921a3f1a"},{"version":"da9c7f70ea076f40b54080c37f2708a375e09809b45cf069cde2eed34850347a","signature":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},{"version":"7641b9fcc7a69f14d0513b21edb8ac81211b585ceb6ce9b2f8e2fffd6ddb1092","signature":"5c1ccbf9cb1a88cf3d1628534b2fda4510c788af05cae55cdf1ef66c55f14488"},{"version":"382385baca9f65e4cf87df793025952f4465616dae56bdcca9da0379fe687ac2","signature":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},"4d48259924f38514f5484d2e144916a112eae253046b65101e46c71182713d9b",{"version":"bb46b9aacd940e54b666a0516e372ca08f7d1075112790f9bcceaac2ed3eeec0","signature":"96bab9ce72cb4c641e0ed583dfa18dd0559d9a25416d0aab6c373412a1ec5200"},{"version":"58ecbb07d131c2d1128d9b55b1d4d00a0c1397dab7716226463bb2bc3959d156","signature":"4d061507c52f2980ec2ab8f05179bdc11d0e3c407c9ff7e5574c69fcca520592"},{"version":"3b4b61bff89dbd9520e67c9ef91ac65818eeeaa892a63c4b943bdc9db4c38a66","signature":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},"a1b19ea38d3d2c2f7421c1aad47597262c39d97a6b9ea6cbb831db70bb45bdef","9d307aa37f29003c56f97ba3b5e915fe5e6a7816e90080e2811d0b5074ba004b","b1104487b2f58c28df8ca5f0374a21366445899139e43f4b2efadacac267e6d8"],"root":[[184,208]],"options":{"allowUnreachableCode":false,"allowUnusedLabels":false,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitOverride":true,"noImplicitReturns":true,"noImplicitUseStrict":false,"noStrictGenericChecks":false,"noUncheckedIndexedAccess":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./commonjs","rootDir":"../../src","skipLibCheck":true,"strict":true,"verbatimModuleSyntax":true},"referencedMap":[[107,1],[106,2],[91,3],[116,4],[112,5],[121,6],[119,6],[120,6],[124,7],[126,8],[127,9],[147,10],[129,11],[131,12],[133,13],[134,14],[135,15],[136,16],[100,16],[137,17],[102,18],[138,19],[139,9],[140,20],[141,21],[97,22],[144,23],[146,24],[145,25],[143,26],[101,17],[98,27],[99,28],[130,29],[122,29],[123,30],[105,31],[150,29],[151,32],[153,12],[108,33],[110,34],[155,35],[149,36],[160,37],[109,14],[164,38],[162,14],[163,36],[166,39],[168,39],[167,39],[115,39],[114,40],[113,41],[111,42],[170,43],[171,44],[95,36],[172,7],[173,7],[182,45],[175,46],[176,29],[88,47],[183,48],[85,44],[86,49],[180,45],[96,27],[94,14],[184,45],[198,50],[193,51],[194,51],[197,52],[195,53],[196,53],[186,54],[187,54],[192,55],[191,56],[204,54]],"latestChangedDtsFile":"./commonjs/types/us_socket_context_t.d.ts","version":"6.0.3"}
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "uws-react-native",
3
+ "version": "0.0.1-alpha.1",
4
+ "description": "The port of uWebSockets library for React Native",
5
+ "license": "MIT",
6
+ "author": "RakaDoank <rakaaudira@gmail.com> (https://github.com/RakaDoank)",
7
+ "homepage": "https://github.com/RakaDoank/uws-react-native",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/RakaDoank/uws-react-native.git",
11
+ "directory": "package"
12
+ },
13
+ "keywords": [
14
+ "uws-react-native",
15
+ "uwebsockets",
16
+ "uwebsockets.js",
17
+ "server",
18
+ "http",
19
+ "websocket"
20
+ ],
21
+ "peerDependencies": {
22
+ "react-native": ">=0.79"
23
+ },
24
+ "files": [
25
+ "android",
26
+ "apple",
27
+ "cpp",
28
+ "lib",
29
+ "src",
30
+ "*.podspec",
31
+ "!android/build",
32
+ "!android/gradle",
33
+ "!android/gradlew",
34
+ "!android/gradlew.bat",
35
+ "!android/local.properties",
36
+ "!ios/build"
37
+ ],
38
+ "exports": {
39
+ ".": {
40
+ "import": {
41
+ "types": "./lib/typescript/module/index.d.ts",
42
+ "default": "./lib/module/index.js"
43
+ },
44
+ "require": {
45
+ "types": "./lib/typescript/commonjs/index.d.ts",
46
+ "default": "./lib/commonjs/index.js"
47
+ }
48
+ },
49
+ "./package.json": "./package.json"
50
+ },
51
+ "codegenConfig": {
52
+ "name": "UwsReactNativeSpecs",
53
+ "type": "modules",
54
+ "jsSrcsDir": "./src/_internal/native-modules",
55
+ "outputDir": {
56
+ "ios": "./apple"
57
+ },
58
+ "android": {
59
+ "javaPackageName": "id.sufeni.oss.uwsreactnative"
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,40 @@
1
+ import {
2
+ TurboModuleRegistry,
3
+ type CodegenTypes,
4
+ type TurboModule,
5
+ } from "react-native"
6
+
7
+ /**
8
+ * This spec is only for C++.
9
+ */
10
+ export interface Spec extends TurboModule {
11
+ App: (
12
+ /**
13
+ * @see {@link file:///./../../types/AppOptions.ts}
14
+ */
15
+ appOptions?: CodegenTypes.UnsafeObject,
16
+ ) => CodegenTypes.UnsafeObject,
17
+
18
+ getParts: (
19
+ /**
20
+ * Has to be an ArrayBuffer.
21
+ * Codegen map this to facebook::jsi::Object.
22
+ */
23
+ body: unknown,
24
+ contentType: string,
25
+ ) => unknown, // Codegen map this to facebook::jsi::Object
26
+
27
+ _us_listen_socket_close: (
28
+ id: CodegenTypes.Int32,
29
+ // listenSocket: CodegenTypes.UnsafeObject,
30
+ ) => void,
31
+
32
+ _us_socket_local_port: (
33
+ id: CodegenTypes.Int32,
34
+ // socket: CodegenTypes.UnsafeObject,
35
+ ) => number,
36
+ }
37
+
38
+ export default TurboModuleRegistry.getEnforcing<Spec>(
39
+ "UwsReactNative",
40
+ )
package/src/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./modules"
2
+ export * from "./types"
@@ -0,0 +1,14 @@
1
+ import NativeUwsReactNative from "../_internal/native-modules/NativeUwsReactNative"
2
+
3
+ import type {
4
+ // AppOptions,
5
+ TemplatedApp,
6
+ } from "../types"
7
+
8
+ /**
9
+ * Constructs a non-SSL app. An app is your starting point where you attach behavior to URL routes.
10
+ * This is also where you listen and run your app, set any SSL options (in case of SSLApp) and the like.
11
+ */
12
+ export function App(/* options?: AppOptions */) : TemplatedApp {
13
+ return NativeUwsReactNative.App(/* options */) as unknown as TemplatedApp
14
+ }
@@ -0,0 +1,101 @@
1
+ // import NativeReactNativeEcho from "../_internal/native-modules/NativeUwsReactNative"
2
+
3
+ // /**
4
+ // * WebSocket compression options. Combine any compressor with any decompressor using bitwise OR.
5
+ // */
6
+ // export enum CompressOptions {
7
+ // /**
8
+ // * No compression (always a good idea if you operate using an efficient binary protocol)
9
+ // */
10
+ // DISABLED = -1,
11
+
12
+ // /**
13
+ // * Zero memory overhead compression.
14
+ // */
15
+ // SHARED_COMPRESSOR = -1,
16
+
17
+ // /**
18
+ // * Zero memory overhead decompression.
19
+ // */
20
+ // SHARED_DECOMPRESSOR = -1,
21
+
22
+ // /**
23
+ // * Sliding dedicated compress window, requires 3KB of memory per socket
24
+ // */
25
+ // DEDICATED_COMPRESSOR_3KB = -1,
26
+
27
+ // /**
28
+ // * Sliding dedicated compress window, requires 4KB of memory per socket
29
+ // */
30
+ // DEDICATED_COMPRESSOR_4KB = -1,
31
+
32
+ // /**
33
+ // * Sliding dedicated compress window, requires 8KB of memory per socket
34
+ // */
35
+ // DEDICATED_COMPRESSOR_8KB = -1,
36
+
37
+ // /**
38
+ // * Sliding dedicated compress window, requires 16KB of memory per socket
39
+ // */
40
+ // DEDICATED_COMPRESSOR_16KB = -1,
41
+
42
+ // /**
43
+ // * Sliding dedicated compress window, requires 32KB of memory per socket
44
+ // */
45
+ // DEDICATED_COMPRESSOR_32KB = -1,
46
+
47
+ // /**
48
+ // * Sliding dedicated compress window, requires 64KB of memory per socket
49
+ // */
50
+ // DEDICATED_COMPRESSOR_64KB = -1,
51
+
52
+ // /**
53
+ // * Sliding dedicated compress window, requires 128KB of memory per socket
54
+ // */
55
+ // DEDICATED_COMPRESSOR_128KB = -1,
56
+
57
+ // /**
58
+ // * Sliding dedicated compress window, requires 256KB of memory per socket
59
+ // */
60
+ // DEDICATED_COMPRESSOR_256KB = -1,
61
+
62
+ // /**
63
+ // * Sliding dedicated decompress window, requires 32KB of memory per socket (plus about 23KB)
64
+ // */
65
+ // DEDICATED_DECOMPRESSOR_32KB = -1,
66
+
67
+ // /**
68
+ // * Sliding dedicated decompress window, requires 16KB of memory per socket (plus about 23KB)
69
+ // */
70
+ // DEDICATED_DECOMPRESSOR_16KB = -1,
71
+
72
+ // /**
73
+ // * Sliding dedicated decompress window, requires 8KB of memory per socket (plus about 23KB)
74
+ // */
75
+ // DEDICATED_DECOMPRESSOR_8KB = -1,
76
+
77
+ // /**
78
+ // * Sliding dedicated decompress window, requires 4KB of memory per socket (plus about 23KB)
79
+ // */
80
+ // DEDICATED_DECOMPRESSOR_4KB = -1,
81
+
82
+ // /**
83
+ // * Sliding dedicated decompress window, requires 2KB of memory per socket (plus about 23KB)
84
+ // */
85
+ // DEDICATED_DECOMPRESSOR_2KB = -1,
86
+
87
+ // /**
88
+ // * Sliding dedicated decompress window, requires 1KB of memory per socket (plus about 23KB)
89
+ // */
90
+ // DEDICATED_DECOMPRESSOR_1KB = -1,
91
+
92
+ // /**
93
+ // * Sliding dedicated decompress window, requires 512B of memory per socket (plus about 23KB)
94
+ // */
95
+ // DEDICATED_DECOMPRESSOR_512B = -1,
96
+
97
+ // /**
98
+ // * Sliding dedicated decompress window, requires 32KB of memory per socket (plus about 23KB)
99
+ // */
100
+ // DEDICATED_DECOMPRESSOR = -1,
101
+ // }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Environment variables recognized by uWebSockets.js.
3
+ *
4
+ * These can be set in the process environment before starting the server.
5
+ */
6
+ export namespace EnvironmentVariables {
7
+ /**
8
+ * Maximum total byte size of HTTP request headers. This is a runtime env variable. Default: 4096.
9
+ */
10
+ export const UWS_HTTP_MAX_HEADERS_SIZE: string | undefined = "TODO"
11
+
12
+ /**
13
+ * Maximum number of HTTP request headers. This is a compile-time define, not a runtime env variable. Default: 100.
14
+ */
15
+ export const UWS_HTTP_MAX_HEADERS_COUNT: string | undefined = "TODO"
16
+ }
@@ -0,0 +1,4 @@
1
+ export enum ListenOptions {
2
+ LIBUS_LISTEN_DEFAULT = 0,
3
+ LIBUS_LISTEN_EXCLUSIVE_PORT = 1,
4
+ }
@@ -0,0 +1,13 @@
1
+ // import NativeUwsReactNative from "../_internal/native-modules/NativeUwsReactNative"
2
+
3
+ // import type {
4
+ // AppOptions,
5
+ // TemplatedApp,
6
+ // } from "../types"
7
+
8
+ // /**
9
+ // * Constructs an SSL app. See `App`.
10
+ // */
11
+ // export function SSLApp(options: AppOptions) : TemplatedApp {
12
+ // return NativeUwsReactNative.SSLApp(options) as unknown as TemplatedApp
13
+ // }
@@ -0,0 +1,29 @@
1
+ import NativeUwsReactNative from "../_internal/native-modules/NativeUwsReactNative"
2
+
3
+ import type {
4
+ MultipartField,
5
+ } from "../types"
6
+
7
+ /**
8
+ * Takes a POSTed body and contentType, and returns an array of parts if the request is a multipart request
9
+ */
10
+ export function getParts(
11
+ body: ArrayBuffer,
12
+ contentType: string,
13
+ ) : MultipartField[] | undefined {
14
+ const result = NativeUwsReactNative.getParts(body, contentType)
15
+
16
+ // See /uws-react-native/package/cpp/ReactNativeUwsModule.cpp
17
+ // Codegen maps the `unknown` type to jsi::Object
18
+ // We can't return Array | undefined in that getParts function.
19
+ // So we have to remap it.
20
+
21
+ // If the result is empty object, it's undefined
22
+ // Otherwise, it's a valid MultipartField array
23
+
24
+ if(Array.isArray(result)) {
25
+ return result as MultipartField[]
26
+ }
27
+
28
+ return undefined
29
+ }
@@ -0,0 +1,8 @@
1
+ export * from "./App"
2
+ // export * from "./CompressOptions"
3
+ // export * from "./EnvironmentVariables"
4
+ export * from "./ListenOptions"
5
+ // export * from "./SSLApp"
6
+ export * from "./getParts"
7
+ export * from "./us_listen_socket_close"
8
+ export * from "./us_socket_local_port"
@@ -0,0 +1,15 @@
1
+ import NativeUwsReactNative from "../_internal/native-modules/NativeUwsReactNative";
2
+
3
+ // import type {
4
+ // us_listen_socket,
5
+ // } from "../types"
6
+
7
+ /**
8
+ * Closes a uSockets listen socket.
9
+ */
10
+ export function us_listen_socket_close(
11
+ token: number,
12
+ // listenSocket: us_listen_socket,
13
+ ) {
14
+ NativeUwsReactNative._us_listen_socket_close(token);
15
+ }
@@ -0,0 +1,16 @@
1
+ import NativeUwsReactNative from "../_internal/native-modules/NativeUwsReactNative";
2
+
3
+ // import type {
4
+ // us_listen_socket,
5
+ // us_socket,
6
+ // } from "../types"
7
+
8
+ /**
9
+ * Gets local port of socket (or listenSocket) or -1.
10
+ */
11
+ export function us_socket_local_port(
12
+ token: number,
13
+ // socket: us_socket | us_listen_socket,
14
+ ) : number {
15
+ return NativeUwsReactNative._us_socket_local_port(token);
16
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Native type representing a raw uWebSockets struct AppDescriptor.
3
+ * Used internally for worker thread distribution.
4
+ * Careful with this one, it is entirely unchecked and native so invalid usage will blow up.
5
+ */
6
+ export interface AppDescriptor {
7
+ }