EventStream to sent ping on start to notify browser
This commit is contained in:
1 parent
a68ab07e72
commit
4d5eb0e3fc
1 file changed
+2
@@ -109,6 +109,8 @@ class APIEventStream(HomeAssistantView):
|
|||||||
_LOGGER.debug('STREAM %s ATTACHED', id(stop_obj))
|
_LOGGER.debug('STREAM %s ATTACHED', id(stop_obj))
|
||||||
|
|
||||||
last_msg = time()
|
last_msg = time()
|
||||||
|
# Fire off one message right away to have browsers fire open event
|
||||||
|
to_write.put(STREAM_PING_PAYLOAD)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in new issue
Block a user