Initialize the event namespace. Args: namespace: The namespace. app: The application object.
(self, namespace: str, app: App)
| 1049 | app: App |
| 1050 | |
| 1051 | def __init__(self, namespace: str, app: App): |
| 1052 | """Initialize the event namespace. |
| 1053 | |
| 1054 | Args: |
| 1055 | namespace: The namespace. |
| 1056 | app: The application object. |
| 1057 | """ |
| 1058 | super().__init__(namespace) |
| 1059 | self.app = app |
| 1060 | |
| 1061 | def on_connect(self, sid, environ): |
| 1062 | """Event for when the websocket is connected. |