MCPcopy
hub / github.com/tornadoweb/tornado / _receive_frame_loop

Method _receive_frame_loop

tornado/websocket.py:1124–1130  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1122 self._write_frame(True, 0x9, data)
1123
1124 async def _receive_frame_loop(self) -> None:
1125 try:
1126 while not self.client_terminated:
1127 await self._receive_frame()
1128 except StreamClosedError:
1129 self._abort()
1130 self.handler.on_ws_connection_close(self.close_code, self.close_reason)
1131
1132 async def _read_bytes(self, n: int) -> bytes:
1133 data = await self.stream.read_bytes(n)

Callers 1

_accept_connectionMethod · 0.95

Calls 3

_receive_frameMethod · 0.95
_abortMethod · 0.80

Tested by

no test coverage detected