def __init__(self, *args, **kwargs): WebSocket.__init__(self, *args, **kwargs) self.debugger_store().chrome_channel.setSocket(self) common_domain_args = {'debugger_store': self.debugger_store()} runtime_domain = RuntimeDomain(**common_domain_args) debugger_domain = DebuggerDomain(runtime_domain, **common_domain_args) self.handlers = HandlerDomainSet( ConsoleDomain(**common_domain_args), debugger_domain, PageDomain(**common_domain_args), runtime_domain, )
def __init__(self, *args, **kwargs): WebSocket.__init__(self, *args, **kwargs) common_domain_args = { 'debugger': self.debugger(), 'socket': self, } file_manager = FileManager(self) remote_object_manager = RemoteObjectManager() runtime_domain = RuntimeDomain(remote_object_manager, **common_domain_args) self.handlers = HandlerDomainSet( ConsoleDomain(**common_domain_args), DebuggerDomain(runtime_domain, file_manager, remote_object_manager, basepath=self.basepath(), **common_domain_args), PageDomain(**common_domain_args), runtime_domain, )