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

Method _read_bytes

tornado/websocket.py:1132–1135  ·  view source on GitHub ↗
(self, n: int)

Source from the content-addressed store, hash-verified

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)
1134 self._wire_bytes_in += n
1135 return data
1136
1137 async def _receive_frame(self) -> None:
1138 # Read the frame header.

Callers 1

_receive_frameMethod · 0.95

Calls 1

read_bytesMethod · 0.80

Tested by

no test coverage detected