MCPcopy Create free account
hub / github.com/commandoperator/cmdop-sdk / _StreamPending

Class _StreamPending

python/src/cmdop/_transport.py:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51
52def _write_delimited(writer: asyncio.StreamWriter, envelope: pb.Envelope) -> None:
53 data = envelope.SerializeToString()
54 if len(data) > _MAX_REQUEST_FRAME_BYTES:
55 raise CmdopConnectionError(
56 f"request frame exceeds {_MAX_REQUEST_FRAME_BYTES} bytes",
57 code="transport",
58 )
59 writer.write(_VarintBytes(len(data)) + data)

Callers 1

_start_streamMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected