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,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.EnvironmentVariables = void 0;
7
+ /**
8
+ * Environment variables recognized by uWebSockets.js.
9
+ *
10
+ * These can be set in the process environment before starting the server.
11
+ */
12
+ let EnvironmentVariables = exports.EnvironmentVariables = void 0;
13
+ (function (_EnvironmentVariables) {
14
+ const UWS_HTTP_MAX_HEADERS_SIZE = _EnvironmentVariables.UWS_HTTP_MAX_HEADERS_SIZE = "TODO";
15
+ const UWS_HTTP_MAX_HEADERS_COUNT = _EnvironmentVariables.UWS_HTTP_MAX_HEADERS_COUNT = "TODO";
16
+ })(EnvironmentVariables || (exports.EnvironmentVariables = EnvironmentVariables = {}));
17
+ //# sourceMappingURL=EnvironmentVariables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["EnvironmentVariables","exports","_EnvironmentVariables","UWS_HTTP_MAX_HEADERS_SIZE","UWS_HTTP_MAX_HEADERS_COUNT"],"sourceRoot":"../../../src","sources":["modules/EnvironmentVariables.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AAJA,IAKiBA,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA;AAAA,WAAAE,qBAAA;EAI7B,MAAMC,yBAA6C,GAAAD,qBAAA,CAAAC,yBAAA,GAAG,MAAM;EAK5D,MAAMC,0BAA8C,GAAAF,qBAAA,CAAAE,0BAAA,GAAG,MAAM;AAAA,GATpDJ,oBAAoB,KAAAC,OAAA,CAAAD,oBAAA,GAApBA,oBAAoB","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ListenOptions = void 0;
7
+ let ListenOptions = exports.ListenOptions = /*#__PURE__*/function (ListenOptions) {
8
+ ListenOptions[ListenOptions["LIBUS_LISTEN_DEFAULT"] = 0] = "LIBUS_LISTEN_DEFAULT";
9
+ ListenOptions[ListenOptions["LIBUS_LISTEN_EXCLUSIVE_PORT"] = 1] = "LIBUS_LISTEN_EXCLUSIVE_PORT";
10
+ return ListenOptions;
11
+ }({});
12
+ //# sourceMappingURL=ListenOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ListenOptions","exports"],"sourceRoot":"../../../src","sources":["modules/ListenOptions.ts"],"mappings":";;;;;;IAAYA,aAAa,GAAAC,OAAA,CAAAD,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,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getParts = getParts;
7
+ var _NativeReactNativeUws = _interopRequireDefault(require("../_internal/native-modules/NativeReactNativeUws.js"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ /**
10
+ * Takes a POSTed body and contentType, and returns an array of parts if the request is a multipart request
11
+ */
12
+ function getParts(body, contentType) {
13
+ const result = _NativeReactNativeUws.default.getParts(body, contentType);
14
+
15
+ // See /uws-react-native/package/cpp/ReactNativeUwsModule.cpp
16
+ // Codegen maps the `unknown` type to jsi::Object
17
+ // We can't return Array | undefined in that getParts function.
18
+ // So we have to remap it.
19
+
20
+ // If the result is empty object, it's undefined
21
+ // Otherwise, it's a valid MultipartField array
22
+
23
+ if (Array.isArray(result)) {
24
+ return result;
25
+ }
26
+ return undefined;
27
+ }
28
+ //# sourceMappingURL=getParts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_NativeReactNativeUws","_interopRequireDefault","require","e","__esModule","default","getParts","body","contentType","result","NativeReactNativeUws","Array","isArray","undefined"],"sourceRoot":"../../../src","sources":["modules/getParts.ts"],"mappings":";;;;;;AAAA,IAAAA,qBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAmF,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAMnF;AACA;AACA;AACO,SAASG,QAAQA,CACvBC,IAAiB,EACjBC,WAAmB,EACa;EAChC,MAAMC,MAAM,GAAGC,6BAAoB,CAACJ,QAAQ,CAACC,IAAI,EAAEC,WAAW,CAAC;;EAE/D;EACA;EACA;EACA;;EAEA;EACA;;EAEA,IAAGG,KAAK,CAACC,OAAO,CAACH,MAAM,CAAC,EAAE;IACzB,OAAOA,MAAM;EACd;EAEA,OAAOI,SAAS;AACjB","ignoreList":[]}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _App = require("./App.js");
7
+ Object.keys(_App).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _App[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _App[key];
14
+ }
15
+ });
16
+ });
17
+ var _ListenOptions = require("./ListenOptions.js");
18
+ Object.keys(_ListenOptions).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _ListenOptions[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _ListenOptions[key];
25
+ }
26
+ });
27
+ });
28
+ var _getParts = require("./getParts.js");
29
+ Object.keys(_getParts).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _getParts[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _getParts[key];
36
+ }
37
+ });
38
+ });
39
+ var _us_listen_socket_close = require("./us_listen_socket_close.js");
40
+ Object.keys(_us_listen_socket_close).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _us_listen_socket_close[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _us_listen_socket_close[key];
47
+ }
48
+ });
49
+ });
50
+ var _us_socket_local_port = require("./us_socket_local_port.js");
51
+ Object.keys(_us_socket_local_port).forEach(function (key) {
52
+ if (key === "default" || key === "__esModule") return;
53
+ if (key in exports && exports[key] === _us_socket_local_port[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _us_socket_local_port[key];
58
+ }
59
+ });
60
+ });
61
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_App","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_ListenOptions","_getParts","_us_listen_socket_close","_us_socket_local_port"],"sourceRoot":"../../../src","sources":["modules/index.ts"],"mappings":";;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,IAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,IAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,IAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AAGA,IAAAK,cAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,cAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,cAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,cAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AAEA,IAAAM,SAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,SAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,SAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,SAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,uBAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,uBAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,uBAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,uBAAA,CAAAP,GAAA;IAAA;EAAA;AAAA;AACA,IAAAQ,qBAAA,GAAAZ,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAU,qBAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAQ,qBAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,qBAAA,CAAAR,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.us_listen_socket_close = us_listen_socket_close;
7
+ var _NativeReactNativeUws = _interopRequireDefault(require("../_internal/native-modules/NativeReactNativeUws.js"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ // import type {
10
+ // us_listen_socket,
11
+ // } from "../types"
12
+
13
+ /**
14
+ * Closes a uSockets listen socket.
15
+ */
16
+ function us_listen_socket_close(token
17
+ // listenSocket: us_listen_socket,
18
+ ) {
19
+ _NativeReactNativeUws.default._us_listen_socket_close(token);
20
+ }
21
+ //# sourceMappingURL=us_listen_socket_close.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_NativeReactNativeUws","_interopRequireDefault","require","e","__esModule","default","us_listen_socket_close","token","NativeReactNativeUws","_us_listen_socket_close"],"sourceRoot":"../../../src","sources":["modules/us_listen_socket_close.ts"],"mappings":";;;;;;AAAA,IAAAA,qBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAoF,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEpF;AACA;AACA;;AAEA;AACA;AACA;AACO,SAASG,sBAAsBA,CACrCC;AACA;AAAA,EACC;EACDC,6BAAoB,CAACC,uBAAuB,CAACF,KAAK,CAAC;AACpD","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.us_socket_local_port = us_socket_local_port;
7
+ var _NativeReactNativeUws = _interopRequireDefault(require("../_internal/native-modules/NativeReactNativeUws.js"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ // import type {
10
+ // us_listen_socket,
11
+ // us_socket,
12
+ // } from "../types"
13
+
14
+ /**
15
+ * Gets local port of socket (or listenSocket) or -1.
16
+ */
17
+ function us_socket_local_port(token
18
+ // socket: us_socket | us_listen_socket,
19
+ ) {
20
+ return _NativeReactNativeUws.default._us_socket_local_port(token);
21
+ }
22
+ //# sourceMappingURL=us_socket_local_port.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_NativeReactNativeUws","_interopRequireDefault","require","e","__esModule","default","us_socket_local_port","token","NativeReactNativeUws","_us_socket_local_port"],"sourceRoot":"../../../src","sources":["modules/us_socket_local_port.ts"],"mappings":";;;;;;AAAA,IAAAA,qBAAA,GAAAC,sBAAA,CAAAC,OAAA;AAAoF,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEpF;AACA;AACA;AACA;;AAEA;AACA;AACA;AACO,SAASG,oBAAoBA,CACnCC;AACA;AAAA,EACU;EACV,OAAOC,6BAAoB,CAACC,qBAAqB,CAACF,KAAK,CAAC;AACzD","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -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,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=HttpRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/HttpRequest.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# 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,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=TemplatedApp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/TemplatedApp.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# 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,10 @@
1
+ "use strict";
2
+
3
+ import { TurboModuleRegistry } from "react-native";
4
+
5
+ /**
6
+ * This spec is only for C++.
7
+ */
8
+
9
+ export default TurboModuleRegistry.getEnforcing("ReactNativeUws");
10
+ //# sourceMappingURL=NativeReactNativeUws.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../../src","sources":["_internal/native-modules/NativeReactNativeUws.ts"],"mappings":";;AAAA,SACCA,mBAAmB,QAGb,cAAc;;AAErB;AACA;AACA;;AA6BA,eAAeA,mBAAmB,CAACC,YAAY,CAC9C,gBACD,CAAC","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ export * from "./modules/index.js";
4
+ export * from "./types/index.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,cAAc,oBAAW;AACzB,cAAc,kBAAS","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ import NativeReactNativeUws from "../_internal/native-modules/NativeReactNativeUws.js";
4
+ /**
5
+ * Constructs a non-SSL app. An app is your starting point where you attach behavior to URL routes.
6
+ * This is also where you listen and run your app, set any SSL options (in case of SSLApp) and the like.
7
+ */
8
+ export function App(/* options?: AppOptions */
9
+ ) {
10
+ return NativeReactNativeUws.App(/* options */);
11
+ }
12
+ //# sourceMappingURL=App.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NativeReactNativeUws","App"],"sourceRoot":"../../../src","sources":["modules/App.ts"],"mappings":";;AAAA,OAAOA,oBAAoB,MAAM,qDAAkD;AAOnF;AACA;AACA;AACA;AACA,OAAO,SAASC,GAAGA,CAAC;AAAA,EAA2C;EAC9D,OAAOD,oBAAoB,CAACC,GAAG,CAAC,cAAc;AAC/C","ignoreList":[]}