Alex Hultman
973a975915
Add .dropped events for pub/sub backpressure notification
2023-11-30 17:40:15 +01:00
Alex Hultman
b647f20a6d
maxLifetime impl. WIP, waiting for uSockets bump
2022-12-27 15:17:07 +01:00
Alex Hultman
7a363a8b10
Revert "closeOnBackpressure should block all further sending"
...
This reverts commit d4ffeadd88 .
2022-11-06 06:23:44 +01:00
Alex Hultman
d4ffeadd88
closeOnBackpressure should block all further sending
2022-11-06 06:21:44 +01:00
Alex Hultman
43a1f307a0
Add subscription event (placeholder)
2022-11-06 05:51:51 +01:00
Jun Woo Shin
b6604b2996
Move TopicTreeMessage and TopicTreeBigMessage to TopicTree.h ( #1510 )
...
* Move TopicTreeMessage and TopicTreeBigMessage to TopicTree.h
* Move TopicTreeMessage and TopicTreeBigMessage to WebSocketContextData per comment
Co-authored-by: Jun Woo Shin <jwoos@meta.com >
2022-11-04 06:36:43 +01:00
Jun Woo Shin
2daeff0390
Declare TopicTreeMessage and TopicTreeBigMessage prior to use ( #1507 )
...
Co-authored-by: Jun Woo Shin <jwoos@meta.com >
2022-11-02 04:03:37 +01:00
root
0ede7e5d8e
Optimize big message publishing, fix unreferenced publishes
2021-09-28 23:22:38 +00:00
Alex Hultman
60939de843
Move TopicTree to the App
2021-09-25 21:24:59 +00:00
Alex Hultman
4243874967
Rewritten pub/sub, v20
2021-09-25 04:46:10 +02:00
Mark Plomer
501c090ef5
Shorter socket-timeouts after WebSocket::end() ( #1245 ) ( #1246 )
2021-08-28 21:27:32 +02:00
ramblehead
6048d026d0
Fixes #1306 - transitive dependencies in header files ( #1310 )
...
* uSockets/src/internal/networking/bsd.h
Add #include "libusockets.h" for LIBUS_SOCKET_DESCRIPTOR
* uWebSockets/src/AsyncSocket.h
Add #include <cstring> for memcpy
Add #include "libusockets.h" for us_socket
* uWebSockets/src/HttpResponse.h
Add #include "HttpContext.h" for HttpContext
* uWebSockets/src/PerMessageDeflate.h
Add #include <cstdint> for uint32_t
* uWebSockets/src/WebSocketContextData.h
Add #include "Loop.h" for Loop::get()
Add #include "AsyncSocket.h" for AsyncSocket
* uWebSockets/src/WebSocketProtocol.h
Add #include <libusockets.h> for WIN32_EXPORT macro
2021-08-28 01:21:31 +02:00
alexhultman-2fa
b7c82d7910
Fix calculateIdleTimeoutCompnents
2021-04-13 14:19:05 +02:00
Alex Hultman
65d1498774
Make conceptual pub/sub changes for v19
2021-04-10 17:22:16 +02:00
Alex Hultman
8089063504
Expose payload to ping/pong events
2021-02-26 01:32:06 +01:00
Alex Hultman
380b3a7134
Make getUserData type safe
2021-02-21 01:31:38 +01:00
Alex Hultman
c7805e2e48
Remove uWS namespace specifier
2021-02-20 23:50:50 +01:00
Alex Hultman
6bf2e75589
Many changes and additions to pub/sub APIs
2021-02-20 15:58:20 +01:00
Alex Hultman
acbe52518f
Remove f2, add ofats::any_invocable
2021-02-19 07:09:55 +01:00
Alex Hultman
49929a6c74
Cheaper timeout system
2021-02-01 23:51:47 +01:00
Alex Hultman
df7c4bb9f8
Add option sendPingsAutomatically
2021-01-31 12:53:17 +00:00
Alex Hultman
76487df709
Hook up WebSocket::publish as sender
2021-01-29 13:27:04 +01:00
Alex Hultman
f8800d3e09
Proper topicTree integration
2021-01-29 13:10:49 +01:00
Alex Hultman
ac7c72698d
Initial integration of new topicTree
2021-01-28 17:26:02 +01:00
Alex Hultman
90e61e88fd
Add resetIdleTimeoutOnSend
2021-01-27 18:56:24 +01:00
Alex Hultman
12d8b192a1
Add closeOnBackpressureLimit option
2021-01-26 12:18:31 +01:00
Alex Hultman
7265ffe480
Experimental: rewrite extensions negotiation
2021-01-11 07:27:40 +01:00
Alex Hultman
a86a500f3b
Fix publish with ded. compr. compress = false
2021-01-08 21:08:19 +01:00
Alex Hultman
ad1d6fac08
Fix -Wunused-parameter
2020-12-01 01:10:00 +01:00
Alex Hultman
cb582461b9
Fix MessageMetadata warnings on old GCC
2020-11-30 23:53:08 +01:00
Alex Hultman
ad0a961430
Experimental: Fix all signed/unsigned warnings
2020-11-30 23:00:36 +01:00
Alex Hultman
f52d816032
Never compress 0 bytes, finish pub/sub ded. compr.
2020-06-22 07:10:43 +02:00
Alex Hultman
57cec82fcf
Initial pub/sub dedicated compression
2020-06-21 03:19:50 +02:00
Alex Hultman
fd2d36328d
Never drain a closing socket from unsubscribeAll
2020-06-10 22:25:45 +02:00
Alex Hultman
17b718a10b
Stricter pub/sub grouping
2020-06-10 14:20:32 +02:00
Alex Hultman
025415d1a0
Clean-ups, bump copyright date
2020-06-08 13:31:06 +02:00
Alex Hultman
625efbc499
Don't pass req in open handler
2020-06-02 12:59:36 +02:00
Alex Hultman
cb48712b3d
Make it stick together just barely
2020-06-02 12:40:51 +02:00
Alex Hultman
8f7d642f3f
Add shared compression for pub/sub
2020-05-28 23:24:52 +02:00
Alex Hultman
20b1676590
Skip sending rather than immediately close while publishing
2020-05-20 17:10:20 +02:00
Alex Hultman
591518b2d0
Ping/pong ahoy
2020-02-29 00:18:25 +01:00
Alex Hultman
199f42e800
It's no longer a draft
2020-01-09 18:48:26 +01:00
Alex Hultman
f274d63dca
Fix all -Wconversion warnings
2019-12-28 21:44:54 +01:00
Alex Hultman
bdac60a177
Fix a few warnings
2019-12-26 16:45:23 +01:00
Alex Hultman
04d3fb3a99
Make sure to remove post/pre handlers
2019-11-08 00:00:59 +01:00
Alex Hultman
49f460ef20
Add app.publish
2019-10-17 02:09:48 +02:00
Alex Hultman
2880745629
Add basic maxBackpressure for pubsub
2019-10-09 01:20:34 +02:00
Alex Hultman
cbb46b494f
Reset timeout on websocket send and publishes
2019-10-08 22:59:22 +02:00
Alex Hultman
f58a9e1e0d
Pass autobahn with pub/sub
2019-10-08 03:55:27 +02:00
Alex Hultman
6c7844d65f
Fix up unsubscribeAll
2019-10-07 11:58:02 +02:00