mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 15: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:
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user