Invoked when a new WebSocket is opened. The arguments to `open` are extracted from the `tornado.web.URLSpec` regular expression, just like the arguments to `tornado.web.RequestHandler.get`. `open` may be a coroutine. `on_message` will not be called until `op
(self, *args: str, **kwargs: str)
| 397 | return None |
| 398 | |
| 399 | def open(self, *args: str, **kwargs: str) -> Optional[Awaitable[None]]: |
| 400 | """Invoked when a new WebSocket is opened. |
| 401 | |
| 402 | The arguments to `open` are extracted from the `tornado.web.URLSpec` |
| 403 | regular expression, just like the arguments to |
| 404 | `tornado.web.RequestHandler.get`. |
| 405 | |
| 406 | `open` may be a coroutine. `on_message` will not be called until |
| 407 | `open` has returned. |
| 408 | |
| 409 | .. versionchanged:: 5.1 |
| 410 | |
| 411 | ``open`` may be a coroutine. |
| 412 | """ |
| 413 | pass |
| 414 | |
| 415 | def on_message(self, message: Union[str, bytes]) -> Optional[Awaitable[None]]: |
| 416 | """Handle incoming messages on the WebSocket |
no outgoing calls
no test coverage detected