mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 13:15:18 +02:00
EventStream to sent ping on start to notify browser
This commit is contained in:
@@ -109,6 +109,8 @@ class APIEventStream(HomeAssistantView):
|
||||
_LOGGER.debug('STREAM %s ATTACHED', id(stop_obj))
|
||||
|
||||
last_msg = time()
|
||||
# Fire off one message right away to have browsers fire open event
|
||||
to_write.put(STREAM_PING_PAYLOAD)
|
||||
|
||||
while True:
|
||||
try:
|
||||
|
Reference in New Issue
Block a user