Switch from event stream to WebSocket for events

This commit is contained in:
oxalica 2024-09-02 21:33:05 -04:00
parent 5fadffef4d
commit 77216aa0f8
9 changed files with 386 additions and 123 deletions

View file

@ -26,8 +26,16 @@ max_page_len = 1024
# Maximum request body length in bytes.
max_request_len = 4096
# Maximum length of a single event queue.
event_queue_len = 1024
# The maximum timestamp tolerance in seconds for request validation.
timestamp_tolerance_secs = 90
# The max waiting time for the first authentication message for websocket.
ws_auth_timeout_sec = 15
# The max waiting time for outgoing message to be received for websocket.
ws_send_timeout_sec = 15
# Maximum number of pending events a single user can have.
# If events overflow the pending buffer, older events will be dropped and
# client will be notified.
ws_event_queue_len = 1024