MCPcopy Create free account
hub / github.com/EasyIME/PIME / open

Method open

python/python3/tornado/websocket.py:399–413  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 15

__init__Method · 0.45
initCinBaseContextMethod · 0.45
checkConfigChangeMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
runMethod · 0.45
fFunction · 0.45
_accept_connectionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected