Initialize the event namespace. Args: namespace: The namespace. app: The application object.
(self, namespace: str, app: App)
| 1589 | app: App |
| 1590 | |
| 1591 | def __init__(self, namespace: str, app: App): |
| 1592 | """Initialize the event namespace. |
| 1593 | |
| 1594 | Args: |
| 1595 | namespace: The namespace. |
| 1596 | app: The application object. |
| 1597 | """ |
| 1598 | super().__init__(namespace) |
| 1599 | self.app = app |
| 1600 | |
| 1601 | # Use TokenManager for distributed duplicate tab prevention |
| 1602 | self._token_manager = TokenManager.create() |
| 1603 | |
| 1604 | @property |
| 1605 | def token_to_sid(self) -> Mapping[str, str]: |