mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 04:31:32 +00:00
Proxy all keys prefixed with 'frontend' to frontend
This commit is contained in:
parent
ddb47d696c
commit
13e247b009
@ -4,7 +4,7 @@ from .message_storage import FrontendMessageStorage
|
||||
|
||||
|
||||
class FrontendProxyHandler:
|
||||
keys = ['console', 'dashboard', 'frontend.ready', 'message', 'ide.read', 'deploy.finish']
|
||||
keys = ['console', 'dashboard', 'frontend', 'message', 'ide.read', 'deploy.finish']
|
||||
|
||||
def __init__(self):
|
||||
self.connector = None
|
||||
@ -22,7 +22,10 @@ class FrontendProxyHandler:
|
||||
|
||||
@staticmethod
|
||||
def _filter_message(message):
|
||||
return not message['key'].startswith(('ide', 'message.queue'))
|
||||
return not message['key'].startswith((
|
||||
'ide',
|
||||
'message.queue'
|
||||
))
|
||||
|
||||
def recover_frontend(self):
|
||||
for message in self._frontend_message_storage.messages:
|
||||
|
Loading…
Reference in New Issue
Block a user