hass-core/homeassistant/components/websocket_api
J. Nick Koston dbb5645e63
Significantly reduce websocket api connection auth phase latency (#108564)
* Significantly reduce websocket api connection auth phase latancy

Since the auth phase has exclusive control over the websocket
until ActiveConnection is created, we can bypass the queue and
send messages right away. This reduces the latancy and reconnect
time since we do not have to wait for the background processing
of the queue to send the auth ok message.

* only start the writer queue after auth is successful
2024-01-21 22:33:31 -05:00
..
__init__.py Send localization info on websocket_api script errors (#104638) 2023-11-29 10:47:23 +01:00
auth.py Significantly reduce websocket api connection auth phase latency (#108564) 2024-01-21 22:33:31 -05:00
commands.py Avoid bytes to string to bytes conversion in websocket api (#108139) 2024-01-16 21:37:34 +01:00
connection.py Avoid bytes to string to bytes conversion in websocket api (#108139) 2024-01-16 21:37:34 +01:00
const.py Add ServiceValidationError and translation support (#102592) 2023-11-06 15:45:04 +01:00
decorators.py Allow complex schemas for validating WS commands (#91655) 2023-04-19 11:37:09 -04:00
error.py
http.py Significantly reduce websocket api connection auth phase latency (#108564) 2024-01-21 22:33:31 -05:00
manifest.json
messages.py Avoid bytes to string to bytes conversion in websocket api (#108139) 2024-01-16 21:37:34 +01:00
sensor.py Upgrade ruff to 0.0.289 (#100238) 2023-09-12 22:22:10 +02:00
services.yaml
strings.json Add ServiceValidationError and translation support (#102592) 2023-11-06 15:45:04 +01:00
util.py