Proxy all keys prefixed with 'frontend' to frontend

This commit is contained in:
Kristóf Tóth 2019-08-28 14:56:31 +02:00
parent ddb47d696c
commit 13e247b009

View File

@ -4,7 +4,7 @@ from .message_storage import FrontendMessageStorage
class FrontendProxyHandler: class FrontendProxyHandler:
keys = ['console', 'dashboard', 'frontend.ready', 'message', 'ide.read', 'deploy.finish'] keys = ['console', 'dashboard', 'frontend', 'message', 'ide.read', 'deploy.finish']
def __init__(self): def __init__(self):
self.connector = None self.connector = None
@ -22,7 +22,10 @@ class FrontendProxyHandler:
@staticmethod @staticmethod
def _filter_message(message): def _filter_message(message):
return not message['key'].startswith(('ide', 'message.queue')) return not message['key'].startswith((
'ide',
'message.queue'
))
def recover_frontend(self): def recover_frontend(self):
for message in self._frontend_message_storage.messages: for message in self._frontend_message_storage.messages: