Commit Graph

133 Commits

Author SHA1 Message Date
Andrew Grosser
5f44dea2a5 Update experimental_cork to cork (#247) 2019-12-17 21:08:06 +01:00
Alex Hultman
e45994a9d0
Fix scope for strings reading app options 2019-12-10 15:12:34 +01:00
Alex Hultman
d9c86f3e93 Wrap ca_file_name option 2019-12-05 21:30:49 +01:00
Alex Hultman
2c87f3593d Initial Worker threads/context aware support 2019-12-05 04:31:45 +01:00
Alex Hultman
13d8743f95 Port to Node.js 10, 11, 12, 13 2019-11-08 13:49:40 +01:00
Alex Hultman
97bff11ba0 Update to uWS v0.16.1, wrap app.publish 2019-10-17 02:19:46 +02:00
Alex Hultman
cfbcb55b03 Wrap maxBackpressure, use sane defaults from uWS 2019-10-09 15:04:45 +02:00
Alex Hultman
b3f37ad896 Update uWS, wrap unsubscribe 2019-10-09 02:47:59 +02:00
Alex Hultman
6b5f7c40a9 Update uWS, pass Autobahn with pubsub SSL/non-SSL 2019-10-09 00:29:53 +02:00
Alex Hultman
fd884ed1c0 Fix all warnings, add onWritable error message 2019-08-18 21:49:06 +02:00
Alex Hultman
17fb149b04
Pass compress to websocket send 2019-08-17 00:13:51 +02:00
Alex Hultman
83ad1353fd Port to uWS v0.16a1 2019-06-12 12:50:05 +02:00
Alex Hultman
f4bc7b38d1 Port to Node.js 10, 11 and 12 2019-04-24 03:01:54 +02:00
Alex Hultman
23b1ea8230 Rename to LIBUS_LISTEN_EXCLUSIVE_PORT, update uWS 2019-04-17 22:26:25 +02:00
Alex Hultman
c22e417cf9 Add OPTION_DO_NOT_REUSE_PORT, update uWS 2019-04-17 22:09:11 +02:00
Alex Hultman
83a9a1f6cd Add experimental_cork to res 2019-04-16 17:00:27 +02:00
Alex Hultman
0686ce8592 Move build logic to C program, add ARM64 target 2019-04-16 14:46:43 +02:00
Alex Hultman
c9d781a4b6 Don't append SSL strings; reset them 2019-04-15 22:50:24 +02:00
Alex Hultman
4f6055d454 Update uWS, bring back MicrotasksPolicy::kAuto 2019-04-04 00:56:24 +02:00
Alex Hultman
5608cbe5ea Actually delete persistence in destructor of websockets 2019-03-12 15:11:39 +01:00
Alex Hultman
927cbd1681 Revert MicrotasksPolicy::kAuto 2019-03-12 12:16:54 +01:00
Alex Hultman
74e8476ad4 Add ssl_prefer_low_memory_usage option 2019-03-10 14:13:06 +01:00
Alex Hultman
91d433d191 Allow iteration over headers 2019-03-10 12:45:43 +01:00
Alex Hultman
b4ca0a487b Add getRemoteAddress to res and ws objects 2019-03-03 07:42:10 +01:00
Alex Hultman
a43675c197 Clean exit, remove forcefully_free 2019-03-02 04:38:01 +01:00
Alex Hultman
319eea90bd Fix app.listen(host, ... 2019-03-01 22:38:09 +01:00
Alex Hultman
2b18558653 Fix up TypedArray input 2019-03-01 22:10:33 +01:00
Alex Hultman
40e6158ada Rely on arrayBufferView->ByteOffset() 2019-03-01 21:56:09 +01:00
Alex Hultman
0a4fb24b9f Majorly simplify process.nextTick 2019-03-01 19:47:27 +01:00
Alex Hultman
06e987db04 Run microtasks after calling JS 2019-03-01 19:04:13 +01:00
Alex Hultman
dcfbd23146 Don't require all websocket handlers, fix up Autobahn test 2019-02-21 19:48:33 +01:00
Alex Hultman
df9c251bf0 Throw on App construction failure 2019-02-10 12:39:00 +01:00
Alex Hultman
d9a6b1010f App.listen may take host, port, callback now 2019-02-10 11:28:33 +01:00
Alex Hultman
9f4bf9b8c5 Update uWS 2019-02-09 23:32:07 +01:00
Alex Hultman
8d7527520f Wrap subscribe, publish, add PubSub example (WIP) 2019-02-09 00:59:12 +01:00
Alex Hultman
80f10df8de Run microtasks each iteration 2019-02-08 21:20:57 +01:00
Alex Hultman
90e4d930f3 Update VideoStreamer.js with new res.tryEnd 2019-01-31 20:36:31 +01:00
Alex Hultman
59662d7e07 Update for API change: ws.end, ws.close 2019-01-26 17:26:53 +01:00
Alex Hultman
c66e3836ad More thorough testing, with ws.terminate 2019-01-26 17:15:28 +01:00
Alex Hultman
929060b34a Update uWS/uS 2019-01-25 15:27:13 +01:00
Alex Hultman
ba73b8882d UniquePersistent all over, app.forcefully_free 2019-01-23 12:59:51 +01:00
Alex Hultman
f2a5d95726 Wrap idleTimeout 2019-01-22 18:50:37 +01:00
Alex Hultman
8da1edc516 Wrap app.any 2019-01-22 18:42:50 +01:00
Alex Hultman
fd11df1134 Return false boolean on listen failure 2019-01-21 19:08:18 +01:00
Alex Hultman
9f0aae77b1 Fix recursive nextTick calls, drain nextTickQueue before exit 2019-01-21 09:09:48 +01:00
Alex Hultman
1d4b874ae7 Also throw on invalid WebSocket usage 2019-01-18 16:57:54 +01:00
Alex Hultman
d067388df4 Throw exceptions on ill-use instead of segfaulting 2019-01-18 16:33:56 +01:00
Alex Hultman
be8aaeeba7 Wrap all http methods & all SSL options 2019-01-18 15:56:08 +01:00
Alex Hultman
0fb6ec9034 Add us_listen_socket_close and graceful shutdown example 2019-01-18 09:07:21 +01:00
Alex Hultman
8e07c320e8 Make it tick nicely on Windows 2019-01-17 10:02:06 +01:00
Alex Hultman
4ae2facba7 Wrap req.getQuery, req.getMethod, res.close, res.onData & add Upload example 2019-01-17 08:22:43 +01:00
Alex Hultman
3558bf30d9 Actually do pass req to ws open 2019-01-17 07:33:31 +01:00
Alex Hultman
84bcf4c62f Swap more to UniquePersistent 2019-01-17 06:53:30 +01:00
Alex Hultman
04c8b5aba5 Fix 0-length array bug 2019-01-17 06:42:45 +01:00
Alex Hultman
8e0860edcf Wrap onAborted, hook up VideoStreamer 2019-01-17 06:31:55 +01:00
Alex Hultman
24fe602f50 Wrap up app.post 2019-01-16 22:59:53 +01:00
Alex Hultman
3067b40a67 Remove dist folder 2019-01-16 22:01:04 +01:00
Alex Hultman
ff37c2a272 Small fix for GCC/Clang 2019-01-16 21:36:35 +01:00
Alex Hultman
3feee30666 Port to Windows 2019-01-16 21:31:17 +01:00
Alex Hultman
79eab43abc Wrap res.getWriteOffset, add VideoStreamer example 2019-01-15 11:52:55 +01:00
Alex Hultman
d132ae2685 Wrap HttpResponseWrapper::onWritable 2019-01-15 08:10:57 +01:00
Alex Hultman
d23e83628d Wrap up res.write, res.writeStatus, res.tryEnd 2019-01-14 13:39:43 +01:00
Alex Hultman
810695f32c HttpResponseWrapper refactor 2019-01-14 13:17:08 +01:00
Alex Hultman
80bc15915b Wrap req.getParameter, req.getUrl 2019-01-14 12:44:29 +01:00
Alex Hultman
647a6ef12c Wrap ws.close and ws.getBufferedAmount 2019-01-14 12:16:24 +01:00
Alex Hultman
31e7463c9b Begin WebSocketWrapper nice struct 2019-01-14 11:54:37 +01:00
Alex Hultman
a6b897cdbc Add QtCreator project for addon 2019-01-14 11:45:25 +01:00
Alex Hultman
0636cfb088 Refactor things into separate files 2019-01-14 11:34:20 +01:00
Alex Hultman
0493190110 Add some comments of missing features 2019-01-14 11:05:08 +01:00
Alex Hultman
647b55f5d8 Hook up close, drain, compression, "Neuter" ArrayBuffers on return 2019-01-14 10:09:09 +01:00
Alex Hultman
15684984d9
Update IP notice 2019-01-11 23:31:36 +01:00
Alex Hultman
31278c13f3 Properly support SSL and non-SSL 2019-01-08 22:04:56 +01:00
Alex Hultman
ba90a20e0f Hook up timers with us_loop_integrate 2018-12-26 19:19:26 +01:00
Alex Hultman
fb10ac9b61 Make websockets benchmarkable 2018-12-26 15:23:14 +01:00
Alex Hultman
7fdba0bdbd Wrap up SSL, initial WebSocket support 2018-12-26 13:50:12 +01:00
Alex Hultman
dac3093e67 Apache 2.0 license 2018-11-15 16:01:49 +01:00
Alex Hultman
9775ad1c9d Don't capture isolate 2018-11-05 01:42:54 +01:00
Alex Hultman
0393102704 Make the two runtimes capable of sharing the same example 2018-11-04 23:46:50 +01:00
Alex Hultman
fae59e871a Remove libuv dependencies 2018-11-04 10:56:51 +01:00
Alex Hultman
bfad8bf232 Make it embeddable as standalone 2018-11-04 09:01:51 +01:00
Alex Hultman
840e665433 Drop Node.js 8, compile for V8 7.1+ 2018-11-04 08:55:35 +01:00
Alex Hultman
9e1b05608e Node.js 11, uWS.nextTick, purely V8 2018-11-03 12:35:42 +01:00
Alex Hultman
100c93ffe4 Le dump 2018-10-28 16:07:21 +01:00