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,103 @@
1
+ // import NativeReactNativeEcho from "../_internal/native-modules/NativeReactNativeUws"
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
+ // }
102
+ "use strict";
103
+ //# sourceMappingURL=CompressOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["modules/CompressOptions.ts"],"mappings":"AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Environment variables recognized by uWebSockets.js.
5
+ *
6
+ * These can be set in the process environment before starting the server.
7
+ */
8
+ export let EnvironmentVariables;
9
+ (function (_EnvironmentVariables) {
10
+ const UWS_HTTP_MAX_HEADERS_SIZE = _EnvironmentVariables.UWS_HTTP_MAX_HEADERS_SIZE = "TODO";
11
+ const UWS_HTTP_MAX_HEADERS_COUNT = _EnvironmentVariables.UWS_HTTP_MAX_HEADERS_COUNT = "TODO";
12
+ })(EnvironmentVariables || (EnvironmentVariables = {}));
13
+ //# sourceMappingURL=EnvironmentVariables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["EnvironmentVariables","_EnvironmentVariables","UWS_HTTP_MAX_HEADERS_SIZE","UWS_HTTP_MAX_HEADERS_COUNT"],"sourceRoot":"../../../src","sources":["modules/EnvironmentVariables.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AAJA,WAKiBA,oBAAoB;AAAA,WAAAC,qBAAA;EAI7B,MAAMC,yBAA6C,GAAAD,qBAAA,CAAAC,yBAAA,GAAG,MAAM;EAK5D,MAAMC,0BAA8C,GAAAF,qBAAA,CAAAE,0BAAA,GAAG,MAAM;AAAA,GATpDH,oBAAoB,KAApBA,oBAAoB","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ export let ListenOptions = /*#__PURE__*/function (ListenOptions) {
4
+ ListenOptions[ListenOptions["LIBUS_LISTEN_DEFAULT"] = 0] = "LIBUS_LISTEN_DEFAULT";
5
+ ListenOptions[ListenOptions["LIBUS_LISTEN_EXCLUSIVE_PORT"] = 1] = "LIBUS_LISTEN_EXCLUSIVE_PORT";
6
+ return ListenOptions;
7
+ }({});
8
+ //# sourceMappingURL=ListenOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ListenOptions"],"sourceRoot":"../../../src","sources":["modules/ListenOptions.ts"],"mappings":";;AAAA,WAAYA,aAAa,0BAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ // import NativeReactNativeUws from "../_internal/native-modules/NativeReactNativeUws"
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 NativeReactNativeUws.SSLApp(options) as unknown as TemplatedApp
13
+ // }
14
+ "use strict";
15
+ //# sourceMappingURL=SSLApp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["modules/SSLApp.ts"],"mappings":"AAAA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ import NativeReactNativeUws from "../_internal/native-modules/NativeReactNativeUws.js";
4
+ /**
5
+ * Takes a POSTed body and contentType, and returns an array of parts if the request is a multipart request
6
+ */
7
+ export function getParts(body, contentType) {
8
+ const result = NativeReactNativeUws.getParts(body, contentType);
9
+
10
+ // See /uws-react-native/package/cpp/ReactNativeUwsModule.cpp
11
+ // Codegen maps the `unknown` type to jsi::Object
12
+ // We can't return Array | undefined in that getParts function.
13
+ // So we have to remap it.
14
+
15
+ // If the result is empty object, it's undefined
16
+ // Otherwise, it's a valid MultipartField array
17
+
18
+ if (Array.isArray(result)) {
19
+ return result;
20
+ }
21
+ return undefined;
22
+ }
23
+ //# sourceMappingURL=getParts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NativeReactNativeUws","getParts","body","contentType","result","Array","isArray","undefined"],"sourceRoot":"../../../src","sources":["modules/getParts.ts"],"mappings":";;AAAA,OAAOA,oBAAoB,MAAM,qDAAkD;AAMnF;AACA;AACA;AACA,OAAO,SAASC,QAAQA,CACvBC,IAAiB,EACjBC,WAAmB,EACa;EAChC,MAAMC,MAAM,GAAGJ,oBAAoB,CAACC,QAAQ,CAACC,IAAI,EAAEC,WAAW,CAAC;;EAE/D;EACA;EACA;EACA;;EAEA;EACA;;EAEA,IAAGE,KAAK,CAACC,OAAO,CAACF,MAAM,CAAC,EAAE;IACzB,OAAOA,MAAM;EACd;EAEA,OAAOG,SAAS;AACjB","ignoreList":[]}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ export * from "./App.js";
4
+ // export * from "./CompressOptions"
5
+ // export * from "./EnvironmentVariables"
6
+ export * from "./ListenOptions.js";
7
+ // export * from "./SSLApp"
8
+ export * from "./getParts.js";
9
+ export * from "./us_listen_socket_close.js";
10
+ export * from "./us_socket_local_port.js";
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["modules/index.ts"],"mappings":";;AAAA,cAAc,UAAO;AACrB;AACA;AACA,cAAc,oBAAiB;AAC/B;AACA,cAAc,eAAY;AAC1B,cAAc,6BAA0B;AACxC,cAAc,2BAAwB","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ import NativeReactNativeUws from "../_internal/native-modules/NativeReactNativeUws.js";
4
+
5
+ // import type {
6
+ // us_listen_socket,
7
+ // } from "../types"
8
+
9
+ /**
10
+ * Closes a uSockets listen socket.
11
+ */
12
+ export function us_listen_socket_close(token
13
+ // listenSocket: us_listen_socket,
14
+ ) {
15
+ NativeReactNativeUws._us_listen_socket_close(token);
16
+ }
17
+ //# sourceMappingURL=us_listen_socket_close.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NativeReactNativeUws","us_listen_socket_close","token","_us_listen_socket_close"],"sourceRoot":"../../../src","sources":["modules/us_listen_socket_close.ts"],"mappings":";;AAAA,OAAOA,oBAAoB,MAAM,qDAAkD;;AAEnF;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO,SAASC,sBAAsBA,CACrCC;AACA;AAAA,EACC;EACDF,oBAAoB,CAACG,uBAAuB,CAACD,KAAK,CAAC;AACpD","ignoreList":[]}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ import NativeReactNativeUws from "../_internal/native-modules/NativeReactNativeUws.js";
4
+
5
+ // import type {
6
+ // us_listen_socket,
7
+ // us_socket,
8
+ // } from "../types"
9
+
10
+ /**
11
+ * Gets local port of socket (or listenSocket) or -1.
12
+ */
13
+ export function us_socket_local_port(token
14
+ // socket: us_socket | us_listen_socket,
15
+ ) {
16
+ return NativeReactNativeUws._us_socket_local_port(token);
17
+ }
18
+ //# sourceMappingURL=us_socket_local_port.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NativeReactNativeUws","us_socket_local_port","token","_us_socket_local_port"],"sourceRoot":"../../../src","sources":["modules/us_socket_local_port.ts"],"mappings":";;AAAA,OAAOA,oBAAoB,MAAM,qDAAkD;;AAEnF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,OAAO,SAASC,oBAAoBA,CACnCC;AACA;AAAA,EACU;EACV,OAAOF,oBAAoB,CAACG,qBAAqB,CAACD,KAAK,CAAC;AACzD","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=AppDescriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/AppDescriptor.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=AppOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/AppOptions.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=HttpRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/HttpRequest.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=HttpResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/HttpResponse.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=HttpRouterOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/HttpRouterOptions.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=MultipartField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/MultipartField.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=RecognizedString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/RecognizedString.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=TemplatedApp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/TemplatedApp.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=WebSocket.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/WebSocket.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,139 @@
1
+ // import type {
2
+ // CompressOptions,
3
+ // } from "../modules/CompressOptions"
4
+
5
+ // import type {
6
+ // HttpRequest,
7
+ // } from "./HttpRequest"
8
+
9
+ // import type {
10
+ // HttpResponse,
11
+ // } from "./HttpResponse"
12
+
13
+ // import type {
14
+ // WebSocket,
15
+ // } from "./WebSocket"
16
+
17
+ // import type {
18
+ // us_socket_context_t,
19
+ // } from "./us_socket_context_t"
20
+
21
+ // /**
22
+ // * A structure holding settings and handlers for a WebSocket URL route handler.
23
+ // */
24
+ // export interface WebSocketBehavior/* <UserData> */ {
25
+ // /**
26
+ // * Maximum length of received message. If a client tries to send you a message larger than this, the connection is immediately closed. Defaults to 16 * 1024.
27
+ // */
28
+ // maxPayloadLength?: number,
29
+
30
+ // /**
31
+ // * Whether or not we should automatically close the socket when a message is dropped due to backpressure. Defaults to false.
32
+ // */
33
+ // closeOnBackpressureLimit?: boolean,
34
+
35
+ // /**
36
+ // * Maximum number of minutes a WebSocket may be connected before being closed by the server. 0 disables the feature. Valid values are 0 and 1-239.
37
+ // */
38
+ // maxLifetime?: number,
39
+
40
+ // /**
41
+ // * Maximum amount of seconds that may pass without sending or getting a message. Connection is closed if this timeout passes. Resolution (granularity) for timeouts are typically 4 seconds, rounded to closest.
42
+ // * Disable by using 0. Defaults to 120.
43
+ // */
44
+ // idleTimeout?: number,
45
+
46
+ // /**
47
+ // * What permessage-deflate compression to use. uWS.DISABLED, uWS.SHARED_COMPRESSOR or any of the uWS.DEDICATED_COMPRESSOR_xxxKB. Defaults to uWS.DISABLED.
48
+ // */
49
+ // compression?: CompressOptions,
50
+
51
+ // /**
52
+ // * Maximum length of allowed backpressure per socket when publishing or sending messages. Slow receivers with too high backpressure will be skipped until they catch up or timeout. Defaults to 64 * 1024.
53
+ // */
54
+ // maxBackpressure?: number,
55
+
56
+ // /**
57
+ // * Whether or not we should automatically send pings to uphold a stable connection given whatever idleTimeout.
58
+ // */
59
+ // sendPingsAutomatically?: boolean,
60
+
61
+ // /**
62
+ // * Upgrade handler used to intercept HTTP upgrade requests and potentially upgrade to WebSocket.
63
+ // * See UpgradeAsync and UpgradeSync example files.
64
+ // */
65
+ // upgrade?: (
66
+ // res: HttpResponse,
67
+ // req: HttpRequest,
68
+ // context: us_socket_context_t,
69
+ // ) => void | Promise<void>,
70
+
71
+ // /**
72
+ // * Handler for new WebSocket connection. WebSocket is valid from open to close, no errors.
73
+ // */
74
+ // open?: (
75
+ // ws: WebSocket/* <UserData> */,
76
+ // ) => void | Promise<void>,
77
+
78
+ // /**
79
+ // * Handler for a WebSocket message. Messages are given as ArrayBuffer no matter if they are binary or not. Given ArrayBuffer is valid during the lifetime of this callback (until first await or return) and will be neutered.
80
+ // */
81
+ // message?: (
82
+ // ws: WebSocket/* <UserData> */,
83
+ // message: ArrayBuffer,
84
+ // isBinary: boolean,
85
+ // ) => void | Promise<void>,
86
+
87
+ // /**
88
+ // * Handler for a dropped WebSocket message. Messages can be dropped due to specified backpressure settings. Messages are given as ArrayBuffer no matter if they are binary or not. Given ArrayBuffer is valid during the lifetime of this callback (until first await or return) and will be neutered.
89
+ // */
90
+ // dropped?: (
91
+ // ws: WebSocket/* <UserData> */,
92
+ // message: ArrayBuffer,
93
+ // isBinary: boolean,
94
+ // ) => void | Promise<void>,
95
+
96
+ // /**
97
+ // * Handler for when WebSocket backpressure drains. Check ws.getBufferedAmount(). Use this to guide / drive your backpressure throttling.
98
+ // */
99
+ // drain?: (
100
+ // ws: WebSocket/* <UserData> */,
101
+ // ) => void,
102
+
103
+ // /**
104
+ // * Handler for close event, no matter if error, timeout or graceful close. You may not use WebSocket after this event. Do not send on this WebSocket from within here, it is closed.
105
+ // */
106
+ // close?: (
107
+ // ws: WebSocket/* <UserData> */,
108
+ // code: number,
109
+ // message: ArrayBuffer,
110
+ // ) => void,
111
+
112
+ // /**
113
+ // * Handler for received ping control message. You do not need to handle this, pong messages are automatically sent as per the standard.
114
+ // */
115
+ // ping?: (
116
+ // ws: WebSocket/* <UserData> */,
117
+ // message: ArrayBuffer,
118
+ // ) => void,
119
+
120
+ // /**
121
+ // * Handler for received pong control message.
122
+ // */
123
+ // pong?: (
124
+ // ws: WebSocket/* <UserData> */,
125
+ // message: ArrayBuffer,
126
+ // ) => void,
127
+
128
+ // /**
129
+ // * Handler for subscription changes.
130
+ // */
131
+ // subscription?: (
132
+ // ws: WebSocket/* <UserData> */,
133
+ // topic: ArrayBuffer,
134
+ // newCount: number,
135
+ // oldCount: number,
136
+ // ) => void,
137
+ // }
138
+ "use strict";
139
+ //# sourceMappingURL=WebSocketBehaviour.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/WebSocketBehaviour.ts"],"mappings":"AAAA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=us_listen_socket.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/us_listen_socket.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=us_socket.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/us_socket.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=us_socket_context_t.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/us_socket_context_t.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ import { type CodegenTypes, type TurboModule } from "react-native";
2
+ /**
3
+ * This spec is only for C++.
4
+ */
5
+ export interface Spec extends TurboModule {
6
+ App: (
7
+ /**
8
+ * @see {@link file:///./../../types/AppOptions.ts}
9
+ */
10
+ appOptions?: CodegenTypes.UnsafeObject) => CodegenTypes.UnsafeObject;
11
+ getParts: (
12
+ /**
13
+ * Has to be an ArrayBuffer.
14
+ * Codegen map this to facebook::jsi::Object.
15
+ */
16
+ body: unknown, contentType: string) => unknown;
17
+ _us_listen_socket_close: (id: CodegenTypes.Int32) => void;
18
+ _us_socket_local_port: (id: CodegenTypes.Int32) => number;
19
+ }
20
+ declare const _default: Spec;
21
+ export default _default;
22
+ //# sourceMappingURL=NativeReactNativeUws.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeReactNativeUws.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/native-modules/NativeReactNativeUws.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,MAAM,cAAc,CAAA;AAErB;;GAEG;AACH,MAAM,WAAW,IAAK,SAAQ,WAAW;IACxC,GAAG,EAAE;IACJ;;OAEG;IACH,UAAU,CAAC,EAAE,YAAY,CAAC,YAAY,KAClC,YAAY,CAAC,YAAY,CAAC;IAE/B,QAAQ,EAAE;IACT;;;OAGG;IACH,IAAI,EAAE,OAAO,EACb,WAAW,EAAE,MAAM,KACf,OAAO,CAAC;IAEb,uBAAuB,EAAE,CACxB,EAAE,EAAE,YAAY,CAAC,KAAK,KAElB,IAAI,CAAC;IAEV,qBAAqB,EAAE,CACtB,EAAE,EAAE,YAAY,CAAC,KAAK,KAElB,MAAM,CAAC;CACZ;;AAED,wBAEC"}
@@ -0,0 +1,3 @@
1
+ export * from "./modules";
2
+ export * from "./types";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,7 @@
1
+ import type { TemplatedApp } from "../types";
2
+ /**
3
+ * Constructs a non-SSL app. An app is your starting point where you attach behavior to URL routes.
4
+ * This is also where you listen and run your app, set any SSL options (in case of SSLApp) and the like.
5
+ */
6
+ export declare function App(): TemplatedApp;
7
+ //# sourceMappingURL=App.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../src/modules/App.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEX,YAAY,EACZ,MAAM,UAAU,CAAA;AAEjB;;;GAGG;AACH,wBAAgB,GAAG,IAA+B,YAAY,CAE7D"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=CompressOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompressOptions.d.ts","sourceRoot":"","sources":["../../../../src/modules/CompressOptions.ts"],"names":[],"mappings":""}
@@ -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 declare namespace EnvironmentVariables {
7
+ /**
8
+ * Maximum total byte size of HTTP request headers. This is a runtime env variable. Default: 4096.
9
+ */
10
+ const UWS_HTTP_MAX_HEADERS_SIZE: string | undefined;
11
+ /**
12
+ * Maximum number of HTTP request headers. This is a compile-time define, not a runtime env variable. Default: 100.
13
+ */
14
+ const UWS_HTTP_MAX_HEADERS_COUNT: string | undefined;
15
+ }
16
+ //# sourceMappingURL=EnvironmentVariables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EnvironmentVariables.d.ts","sourceRoot":"","sources":["../../../../src/modules/EnvironmentVariables.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,yBAAiB,oBAAoB,CAAC;IACrC;;OAEM;IACC,MAAM,yBAAyB,EAAE,MAAM,GAAG,SAAkB,CAAA;IAEnE;;OAEM;IACC,MAAM,0BAA0B,EAAE,MAAM,GAAG,SAAkB,CAAA;CACpE"}
@@ -0,0 +1,5 @@
1
+ export declare enum ListenOptions {
2
+ LIBUS_LISTEN_DEFAULT = 0,
3
+ LIBUS_LISTEN_EXCLUSIVE_PORT = 1
4
+ }
5
+ //# sourceMappingURL=ListenOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListenOptions.d.ts","sourceRoot":"","sources":["../../../../src/modules/ListenOptions.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACxB,oBAAoB,IAAI;IACxB,2BAA2B,IAAI;CAC/B"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=SSLApp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SSLApp.d.ts","sourceRoot":"","sources":["../../../../src/modules/SSLApp.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import type { MultipartField } from "../types";
2
+ /**
3
+ * Takes a POSTed body and contentType, and returns an array of parts if the request is a multipart request
4
+ */
5
+ export declare function getParts(body: ArrayBuffer, contentType: string): MultipartField[] | undefined;
6
+ //# sourceMappingURL=getParts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getParts.d.ts","sourceRoot":"","sources":["../../../../src/modules/getParts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,cAAc,EACd,MAAM,UAAU,CAAA;AAEjB;;GAEG;AACH,wBAAgB,QAAQ,CACvB,IAAI,EAAE,WAAW,EACjB,WAAW,EAAE,MAAM,GAChB,cAAc,EAAE,GAAG,SAAS,CAgB/B"}
@@ -0,0 +1,6 @@
1
+ export * from "./App";
2
+ export * from "./ListenOptions";
3
+ export * from "./getParts";
4
+ export * from "./us_listen_socket_close";
5
+ export * from "./us_socket_local_port";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AAGrB,cAAc,iBAAiB,CAAA;AAE/B,cAAc,YAAY,CAAA;AAC1B,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA"}