The wire form of `message`: one JSON document on its own line.
(message: JSONRPCMessage)
| 215 | |
| 216 | |
| 217 | def _line(message: JSONRPCMessage) -> bytes: |
| 218 | """The wire form of `message`: one JSON document on its own line.""" |
| 219 | return (message.model_dump_json(by_alias=True, exclude_unset=True) + "\n").encode() |
| 220 | |
| 221 | |
| 222 | async def _next_message(read_stream: ReadStream[SessionMessage | Exception]) -> JSONRPCMessage: |
no outgoing calls
no test coverage detected