|
|
@ -226,7 +226,7 @@ class BaseServer: |
|
|
|
'*' in self.handlers[namespace]: |
|
|
|
handler = self.handlers[namespace]['*'] |
|
|
|
args = (event, *args) |
|
|
|
elif '*' in self.handlers: |
|
|
|
if handler is None and '*' in self.handlers: |
|
|
|
if event in self.handlers['*']: |
|
|
|
handler = self.handlers['*'][event] |
|
|
|
args = (namespace, *args) |
|
|
@ -245,7 +245,7 @@ class BaseServer: |
|
|
|
handler = None |
|
|
|
if namespace in self.namespace_handlers: |
|
|
|
handler = self.namespace_handlers[namespace] |
|
|
|
elif '*' in self.namespace_handlers: |
|
|
|
if handler is None and '*' in self.namespace_handlers: |
|
|
|
handler = self.namespace_handlers['*'] |
|
|
|
args = (namespace, *args) |
|
|
|
return handler, args |
|
|
|